fix(cli): point saved-result hint at real cost command (#538)#540
Merged
Conversation
The saved-result "Next:" block is the canonical follow-up surface after `panel run --save`. Users reaching for per-run cost reasonably try `synthpanel cost <result-id>`, which errors because `cost` only accepts the `summary` subcommand. There is no per-result `cost` command — the per-run cost rollup lives in `synthpanel report <id>`, and cross-run aggregation lives in `synthpanel cost summary`. Surface both real paths in the hint and clarify that `report` already carries the cost rollup, so nobody guesses the nonexistent `cost <id>` form. Adds a regression test asserting the hint only suggests real commands. Closes #538 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deploying synthpanel with
|
| Latest commit: |
ccbe043
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://41bb16e0.synthpanel.pages.dev |
| Branch Preview URL: | https://fix-report-cost-hint.synthpanel.pages.dev |
the-data-viking
approved these changes
Jun 3, 2026
the-data-viking
added a commit
that referenced
this pull request
Jun 3, 2026
Cuts the patch release containing the four bug fixes merged today (#540 cost hint, #541 mcp-install path, #542 dry-run vision guard, #543 report synthesize hint) plus the attachments docs (#535). Pre-bumps __version__.py and re-renders the version artifacts (render_site.py, render_site_markdown.py, render_server_card.py) so auto-tag.yml hits its "nothing to commit" path and only tags v1.5.6 — its direct version-bump push to main is currently rejected by branch protection (GH013), which is why applying semver:patch to a regular fix PR (#543) failed to release. Filing that pipeline issue separately. Co-authored-by: Wesley Johnson <wesley@dataviking.tech> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
synthpanel cost <result-id>errors (invalid choice: ... (choose from summary)) becausecostonly has thesummarysubcommand. The saved-result "Next:" block (printed afterpanel run --save) is where users look for follow-ups, so it now explicitly points at the two real cost surfaces instead of leaving a per-resultcost <id>command implied:synthpanel report <id>— full Markdown report (now annotated as including the cost rollup)synthpanel cost summary— cost rollup across saved runsThis closes the CLI/docs inconsistency called out in the issue: the per-run cost rollup lives in
report, and cross-run aggregation lives incost summary. There is no per-resultcostcommand.Test
Added
TestSavedResultHintCommands.test_hint_suggests_real_commands_not_per_result_costintests/test_results_discovery.py, asserting the hint surfacesreport <id>,results show <id>,results list, andcost summary— and never the invalidcost <id>form.Gates
ruff check ./ruff format --check .: passpytest tests/test_results_discovery.py: 10 passedCloses #538
🤖 Generated with Claude Code