Repository navigation
fix(notifications): reset Eat program status on reuse and harden OSC 7501 parser - #611
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2564a66d50
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
tninja
left a comment
There was a problem hiding this comment.
Reviewed at 3053b18dcd0f28f60246decaae213e0724bb409f — all findings resolved.
Verification Summary
- Eat Buffer Reuse & Parser Bounds: Verified
ai-code-backends-infra--reset-program-status-stateon Eat session reuse, exact?support-query matching, 4096-byte sequence cap across single-chunk and multi-chunk inputs, 128-char / newlineidvalidation, and root-preserving 256-record LRU cap inai-code-backends-infra--program-status-apply. - Cross-Feature UI Check: Verified
tab-barattention badges (ai-code-session-attention-mode), Session Dashboard status, Vterm, and Ghostel remain intact without prematuredoneflips or dropped completion notifications. - CI & Local Batch Checks:
unit-tests(ert,windows-platform) andmelpazoid(build) all passed on3053b18; localemacs -Q --batchstrict byte-compilation,checkdoc-file, and 318/318 ERT tests passed.
Ready to merge.
Follow-up to #610 addressing two edge cases found during PR review:
Changes
ai-code-backends-infra-eat.el,ai-code-backends-infra.el):ai-code-backends-infra--reset-program-status-stateand call it inai-code-backends-infra-eat-create-sessionbeforeeat-exec.eat-mode, so reusing the buffer skips(eat-mode)and previously retained staleai-code-backends-infra--program-status-records,ai-code-backends-infra--program-status-pending, andai-code-backends-infra--busy-signal. A stale blocked child record could shadow all root updates for the new process, and a stalebusysignal could trigger a spurious "Response Ready" notification on startupidle.ai-code-backends-infra.el):(string= (string-trim body) "?")instead of(string-prefix-p "?" body)so echoed terminal replies such as?:states=...are not answered as queries.ai-code-backends-infra--program-status-max-length(4096) on complete single-chunk sequences as well as pending fragments.idlength limit (ai-code-backends-infra--program-status-id-max-length) and ensureidvalues containing newlines fail validation instead of being skipped and falling back to the root record.ai-code-backends-infra--program-status-recordsatai-code-backends-infra--program-status-max-records(256) with LRU eviction.test/test_ai-code-backends-infra.el):idrejection, and record-count LRU capping.Validation
emacs -Q --batchstrict byte-compilation (byte-compile-error-on-warn t) onai-code-backends-infra-eat.elandai-code-backends-infra.el: 0 warnings, 0 errors.checkdoc-fileon all three modified files: 0 new warnings.emacs -Q --batchERT suites (test_ai-code-session-attention.el,test_ai-code-backends-infra.el,test_ai-code-backends-infra-ghostel.el): 294/294 passed, 0 unexpected.