fix(desktop): skip archived session queries - #4431
Conversation
|
@Astro-Han This PR fixes a concrete bug, and AppShell is currently the only composition point that holds both the authoritative archived state and the pending Archive/Delete state, so keeping the small query gate there is the simplest owner-correct fix. The monotonic token ratchet blocks even this composition-only change; moving it into a new helper or controller would add indirection and could make ownership worse, so what path did you intend for legitimate bug fixes that need small AppShell wiring without gaming the metric? |
8f1760f to
2dbcff1
Compare
|
Hi, @chihumyum This PR currently fails the AppShell architecture ratchet because a narrow bug fix adds query-gate wiring at the composition point. Given the migration tracked in #3439 and the guardrail introduced by #4088, should we hold this fix until the Conversation/AppShell ownership work provides its intended home, or is there an accepted way to land this small wiring now without mechanically moving it elsewhere just to satisfy the ledger? |
Thanks for raising this. Please do not hold the bug fix until the full Conversation/AppShell migration, and please do not raise the AppShell token baseline. |
2dbcff1 to
e1f0530
Compare
Done |
Automatic Skills and Plan refreshes could reach the Runtime Host after a session entered archival, producing avoidable session errors. CLOSES apache#4430 Signed-off-by: Jiawei Zhao <Phoenix500526@163.com> Generated-by: OpenAI Codex
e1f0530 to
ff532da
Compare
The E2E could leave the viewport before anchoring a text selection, so scrolling succeeded while the selection stayed empty. Wait for the composer and anchor within the rendered line first. Signed-off-by: Jiawei Zhao <Phoenix500526@163.com> Generated-by: OpenAI Codex
The scroll E2E recurred because moving to zero was treated as the request even though a settled scroller cannot move farther. Dispatching the upward wheel matches the production trigger and removes timing dependence on a scroll event. Signed-off-by: Jiawei Zhao <Phoenix500526@163.com> Generated-by: OpenAI Codex
Summary
Prevent archived sessions from remaining automatic query targets by:
This reuses the existing pending row-action state, so renderer cleanup still happens only after the Runtime Host confirms the operation.
Fixes #4430
Verification
npm --workspace @maka/desktop run build:main— passednpm --workspace @maka/desktop run typecheck— passednpm run check:app-shell-hooks— passednpm --workspace @maka/desktop run check:architecture— passed (60 tests)AI use
Select exactly one:
Tool(s) and scope:
OpenAI Codex assisted with diagnosis, implementation, regression tests, and code review.
Checklist
Does this PR entail a change in behavior?