Repository navigation
fix(tui): clear stale composer after coalesced resize - #889
Merged
Merged
Conversation
XuPeng-SH
approved these changes
Sep 26, 2026
XuPeng-SH
left a comment
Collaborator
There was a problem hiding this comment.
Deep review of d6fa11f1e8bfe69c7b94496e47614c6c4c7fafab against parent/base e837309c0.
结论:Approve。本轮未确认需要阻断合入的正确性问题。
复核了两个变更文件,以及 resize event/CPR 查询、interrupted/尺寸失配处理、viewport reflow accounting、clear/invalidate、inline viewport 增长与绘制的调用链。额外清屏仅在恢复后的尺寸与上次绘制尺寸完全相同时使用旧/新 viewport 起点的较小值;实际尺寸变化继续从恢复后的 origin 清屏,保留重排历史的现有边界。clear_after_position 同时重置 diff buffer,后续完整绘制仍有效,未引入 scrollback purge。
验证:
git diff --check HEAD^、cargo fmt --all -- --check、node --check scripts/tui-reflow/resize.cjs:通过。cargo build --locked --offline -p astra-cli --bin astra --target-dir /Users/xupeng/github/astra/target:通过。- 使用本 head 构建的真实 astra binary 运行原版
scripts/tui-reflow/resize.cjs:6 个 journey、24 个检查点全部通过,包含长草稿、快速宽高往返和最后一次查询前两行 cursor displacement。 - 在仓库外复制 harness,启动前额外输出 60 条可重排长历史记录,并逐次检查全部 60 个标记和 1,200 个正文词仍完整保留;再次运行全部 6 个 journey、24 个检查点,全部通过。原有 composer/footer 唯一性、startup history、可见性和无 native scrollback purge 断言也通过。
- 提交前确认 PR head 未变化。相关 Linux/macOS terminal PTY CI 已通过。
范围:本地验证使用 macOS 上的真实 PTY 和 headless xterm;未逐一验证其他终端模拟器或 multiplexer,未运行完整 workspace 测试。未修改生产实现;额外 harness 仅保存在独立临时目录。
Contributor
Merge Queue Status
This pull request spent 17 seconds in the queue, including 3 seconds running CI. Required conditions to merge
|
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]>
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
Related issue
No issue filed; observed in the linked main-branch CI job.
Change type
User and compatibility impact
The TUI no longer leaves an earlier composer row visible after this resize sequence. No configuration or API changes.
Architecture and complexity delta
TerminalGuard.Verification
cargo build --locked --offline -p astra-cli --bin astra,make format-check,node --check scripts/tui-reflow/resize.cjs, and the fullscripts/tui-reflow/resize.cjsxterm journey passed.astrabinary in a real PTY with xterm reflow.Final checklist