mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6642] [MERGED] fix: keep typing from dismissing agent write reviews #7268
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6642
Author: @SpicyMarinara
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/6638-review-focus📝 Commits (7)
4f8ef4bdocs: track safe initial focus for agent reviews9763c6efix: focus review context before agent approval actions82a2eb3Merge remote-tracking branch 'origin/staging' into codex/6638-review-focus10af92btest: wait for the agent review commit request8b2f167test: verify focus moves to the next review explanationc7f1b9bMerge remote-tracking branch 'origin/staging' into codex/6638-review-focus7f1bfe4Merge remote-tracking branch 'origin/staging' into codex/6638-review-focus📊 Changes
3 files changed (+110 additions, -2 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)➕
e2e/agent-write-approval.e2e.ts(+102 -0)📝
packages/client/src/components/modals/AgentWriteApprovalModal.tsx(+6 -2)📄 Description
Linked issue
Closes #6638
Why this change
Lorebook and Chat Summary proposals can appear while the user is typing. The modal initially focuses Close, so the next Space press discards the proposed update.
What changed
Reuse the modal's existing initial-focus support to focus the review explanation. Reset focus when moving to another queued proposal. Deliberately focusing Accept or Discard still allows normal keyboard activation.
Validation
Completed:
pnpm checkon the final staging base, including the merged Game translation fix, plus 6 browser cases covering light/dark themes on desktop Chromium, mobile Chromium, and mobile WebKit. The regression reproduces accidental dismissal before the fix and checks preserved proposal text, the composer draft, queue advancement, and deliberate keyboard acceptance/discard afterward.Local CodeRabbit completed a combined review and a follow-up review covering all 3 files in this PR. Its test-timing finding is addressed: the assertion polls for the observed commit request. All 6 browser cases and the final E2E type check pass. No unresolved local finding applies to this change. The hosted review suggestion is also covered: after Accept advances the queue, the browser test verifies focus on the next proposal explanation before pressing Space/Enter.
The required hosted container build is the container validation; no local container run is claimed.
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Manually verify proposals appearing during typing, advancing a queue, editing text, and deliberate keyboard activation of Accept and Discard on desktop and mobile.
Docs and release impact
Includes an Unreleased changelog entry. No copy, settings, data formats or versions change.
UI evidence (if applicable)
Before/after browser evidence: baseline dismissal, retained desktop proposal, and retained mobile proposal. All screenshots use synthetic test fixtures.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.