Skip to content

fix(review): open the Review panel only on explicit user action - #609

Merged
vastsa merged 2 commits into
mainfrom
fix/review-panel-explicit-open
Sep 18, 2026
Merged

vastsa merged 2 commits into
mainfrom
fix/review-panel-explicit-open

Conversation

@vastsa

@vastsa vastsa commented Sep 18, 2026

Copy link
Copy Markdown
Owner

What changed

A successful workspace Write/Edit used to open or activate the session's
Review tab from the tool_end handler, so an agent edit could reveal the side
panel and compete with whatever the user was reading. The artifact gate
(shouldOpenReviewArtifact) and its call site are removed: no tool result
opens, activates, or resizes the work panel.

Review now stays reachable only through explicit user actions — the + New
launcher row and the retained panel context the viewport-fixed toggle /
Cmd/Ctrl + J reveals. The message-owned inline review card still records the
change in the transcript, and hash-guarded rollback is unchanged.

Verification

  • apps/desktop: node --test test/*.test.mjs → 2209 passed, 0 failed on this
    commit against origin/main bfe44b5.
  • Source-contract tests now assert the gate is gone and that the launcher row
    remains (work-panel.test.mjs, bundled-plugins.test.mjs,
    chat-review-entry.test.mjs).
  • tsc -p apps/desktop/tsconfig.json --noEmit: no error in any changed file.
    The remaining prompt-enhancement errors come from a stale local
    @pi-desktop/shared dist, not from this change.

Specs

04-ux/01-ui-ia.md, 04-ux/08-component-spec.md §5.4,
04-ux/09-interaction-patterns.md, 04-ux/10-workbuddy-benchmark-ux.md,
06-delivery/04-e2e-test-plan.md (E2E-057, E2E-153, US-UI-68), and
08-meta/decisions-log.md D451.

The tool_end handler opened or activated a session's Review tab whenever a
workspace Write/Edit succeeded, so an agent edit could reveal the side panel
and compete with whatever the user was reading. Remove the artifact gate and
its helper so a tool result never opens, activates, or resizes the panel.

The message-owned inline review card still records the change in the
transcript, and Review stays reachable from the "+" launcher row and from the
retained panel context the viewport toggle reveals. Specs, E2E scenarios, and
the decisions log (D451) follow the behavior.
Copilot AI lite review requested due to automatic review settings September 18, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

The locale check compares table and fence structure between the English
specifications and their Chinese mirrors, so D451 has to exist on both sides,
and the reworded Review trigger sentences now agree instead of describing the
removed automatic panel opening. No behavior change in this commit.
@vastsa
vastsa merged commit be6048b into main Sep 18, 2026
4 checks passed
@vastsa
vastsa deleted the fix/review-panel-explicit-open branch September 21, 2026 11:16

This branch was successfully deployed

1 active deployment
Preview — e32ad069 Deployed Sep 18, 2026 by vercel[bot]
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.

2 participants