Skip to content

fix(cli): simplify partial usage summary - #890

Merged
XuPeng-SH merged 1 commit into
matrixorigin:mainfrom
XuPeng-SH:fix/turn-usage-summary-copy
Sep 27, 2026
Merged

XuPeng-SH merged 1 commit into
matrixorigin:mainfrom
XuPeng-SH:fix/turn-usage-summary-copy

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Collaborator

Summary

Remove the redundant “usage incomplete” wording from partial token summaries. Keep lower-bound markers for reported counts, omit an uninformative zero cache count when usage is partial, and document why a cache percentage requires a complete input total.

Related issue

N/A

Change type

  • Bug fix
  • Feature
  • Documentation
  • Refactor or performance improvement
  • Test
  • Build, CI, or maintenance

User and compatibility impact

Completion summaries are easier to scan. Partial usage still shows reported lower bounds (for example, ≥46.2k tokens · ≥34.9k cached); complete input accounting continues to show a cache percentage. No API or persistence format changes.

Architecture and complexity delta

N/A. Extended the existing shared CLI/TUI cache summary formatter; no parallel behavior or state added.

Verification

  • Commands and results:
    • cargo test -p astra-cli --lib cli::turn::turn_reporting::tests — 22 passed.
    • cargo test -p astra-cli --lib tui::history_cell::turn_summary::tests — 14 passed.
    • cargo fmt --all -- --check — passed.
    • git diff --check — passed.
  • Public entrypoint exercised: CLI completion summary and TUI turn history summary formatter tests.
  • Unhappy paths exercised: incomplete usage, absent/zero cache lane, and cache percentage only when input usage is complete.
  • Database verification: Not applicable.

Final checklist

  • I added or updated tests at the layer that owns the behavior.
  • I updated the CLI reference for the presentation contract.
  • I checked the diff for credentials, private URLs, customer data, generated files, and other sensitive information.
  • The PR title follows the repository's Conventional Commit format.

@XuPeng-SH
XuPeng-SH merged commit eff4c9e into matrixorigin:main Sep 27, 2026
25 checks passed
@XuPeng-SH
XuPeng-SH deleted the fix/turn-usage-summary-copy branch September 27, 2026 08:46
@loveRhythm1990 loveRhythm1990 mentioned this pull request Sep 28, 2026
5 tasks done
mergify Bot pushed a commit that referenced this pull request Sep 28, 2026
## Summary

Synchronize the workspace version from `0.2.9` to `0.2.10`. This pull request only updates release metadata. It does not change runtime behavior, create a tag, publish container images, or create a GitHub Release.

`main` already contains the fixes and features that this version names:

- Run-lifecycle 409 conflicts carry stable, structured error codes, and the pre-admission rejection contract is complete for session-slot conflicts (#886).
- Bounded session recovery is hardened (#883).
- Explain artifact recovery and introspection scope is clarified (#885).
- Client-owned skills are routed with the server catalog (#881).
- Execution evidence and progress feedback are grounded for judgment (#880).
- MCP bindings are preserved across chat turns (#887).
- The composer no longer goes stale after a coalesced resize (#889).
- Next-turn assessments are persisted for observability (#888).
- Live run observation load is reduced (#891).
- Partial usage summary output is simplified (#890).
- Web dependency patch/minor updates (#895).

Pinned MatrixOne and Memoria image digests are unchanged.

MOI publishes the client from the selected Astra commit. After this change is on `matrixorigin/Astra`, a MOI source build can set `astra_version` to `0.2.10` and check it against this commit's `Cargo.toml`. Publishing the GitHub Release is a separate step: after merge, run `make release-publish VERSION=0.2.10` from a clean `main` checkout. This pull request does not do that.

## Related issue

No related issue.

## Change type

- [x] Build, CI, or maintenance

## User and compatibility impact

Installed clients do not change until a bundle or GitHub Release is built from this commit. There is no configuration migration. The source version becomes `0.2.10`.

## Architecture and complexity delta

N/A

- Canonical owner changed or extended: none
- Existing implementations and callers searched: the version surfaces covered by `make release-prepare`
- Superseded code, states, tables, shims, or self-only tests removed: none
- If parallel implementations remain, their boundary and retirement condition: none

## Verification

- Commands and results: `make release-prepare VERSION=0.2.10` succeeded. `LC_ALL=C make release-check VERSION=0.2.10` passed.
- Public entrypoint exercised: not published.
- Unhappy paths exercised: `validate-release-version.sh` confirmed the `0.2.10` version surfaces are internally consistent.
- Database verification: not applicable. `make check` and `make test-offline` were not run because this change only rewrites version metadata.

## Final checklist

- [x] I added or updated tests at the layer that owns the behavior, or explained why no test is needed.
- [x] I updated public or design documentation for contract changes, or the change needs no documentation update.
- [x] I checked the diff for credentials, private URLs, customer data, generated files, and other sensitive information.
- [x] The PR title follows the repository's Conventional Commit format.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Approved-by: XuPeng-SH <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant