Skip to content

fix(app): resume auto-approve after IME composition - #88

Merged
simota merged 1 commit into
mainfrom
fix/auto-approve-ime-rescan
Sep 14, 2026
Merged

simota merged 1 commit into
mainfrom
fix/auto-approve-ime-rescan

Conversation

@simota

@simota simota commented Sep 14, 2026

Copy link
Copy Markdown
Owner

A recognized approval dialog arriving during IME composition could lose its rescan deadline and remain pending after composition ended. Keep the dialog tracked while approval is suppressed, then require two unsuppressed stable scans before sending Enter. Detection now resumes even when ending composition produces no PTY output.

Add regression coverage for IME recovery, duplicate suppression, and the agy log-search dialog through both text and VT/grid detection. Update the auto-approve specification with the behavior and investigation follow-up.

Validation:

  • Confirmed the IME recovery regression fails before the fix and passes afterward.
  • cargo test --workspace — 2659 passed, 15 ignored, 0 failed.
  • cargo fmt --all -- --check
  • git diff --check origin/main...HEAD

The originally reported agy stall remains unconfirmed: auto-approve was enabled before the dialog appeared, but the composition state at that time is unknown. The follow-up in docs/specs/auto-approve-mode.md calls for inspecting [auto-approve] diagnostics with NOA_AUTO_APPROVE_TRACE=1 on recurrence. Acceptance by a running CLI has not been verified for this change.

Keep recognized prompts tracked during IME composition so static dialogs resume detection after composition ends without new PTY output.

Add regression coverage for the agy log-search layout and IME recovery. Keep the original reported stall documented as unresolved.

Validation: cargo test -p noa-app (1239 passed, 6 ignored).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-14T03:39:09.336428Z c7341ea PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@simota
simota merged commit 52402c4 into main Sep 14, 2026
1 check passed
@simota
simota deleted the fix/auto-approve-ime-rescan branch September 14, 2026 12:22
@simota simota mentioned this pull request Sep 15, 2026
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