Skip to content

fix: resolve seven review findings across ipc, input, grid, and session restore - #70

Merged
simota merged 2 commits into
mainfrom
fix/review-7-findings
Sep 5, 2026
Merged

fix: resolve seven review findings across ipc, input, grid, and session restore#70
simota merged 2 commits into
mainfrom
fix/review-7-findings

Conversation

@simota

@simota simota commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • ipc: raise client frame bound to the message bound so a default-sized getText response is not rejected; validate #rrggbb as ASCII hex before slicing (non-ASCII panicked)
  • input: honor modifyOtherKeys=2 (CSI 27;mods;cp~) in the legacy encoder, reporting the Shift/layout-translated codepoint like xterm; keep the Alt ESC prefix on Ctrl+Alt C0 bytes
  • grid: DECSTR clears IRM; RIS keeps the configured default cursor style and resets modifyOtherKeys=2
  • app: save/restore each tab group's selected tab, not only the focused one

Test plan

  • cargo test -p noa-app input (158 passed)
  • cargo test -p noa-grid (604 passed)
  • cargo clippy --workspace — 4 warnings, all pre-existing on main
  • GUI: Ctrl+Shift+1 under CSI > 4;2 m sends ESC [27;6;33~; session restore keeps per-group selected tab

https://claude.ai/code/session_01GBe292wmocEXM8SjBzjGq7

…on restore

- ipc: raise client frame bound to the message bound so a default-sized
  getText response is not rejected on receipt
- ipc: validate #rrggbb as ASCII hex before slicing (non-ASCII panicked)
- input: honor modifyOtherKeys=2 (CSI 27;mods;cp~) in the legacy encoder
- input: keep the Alt ESC prefix on Ctrl+Alt C0 bytes
- grid: DECSTR clears IRM; RIS keeps the configured default cursor style
- app: save/restore each tab group's selected tab, not only the focused one

Claude-Session: https://claude.ai/code/session_01GBe292wmocEXM8SjBzjGq7
…t it on RIS

- modifyOtherKeys=2 now encodes the logical (Shift/layout-translated) key,
  matching xterm: Ctrl+Shift+1 on US reports 33 ('!'), not 49
- RIS (ESC c) clears the modifyOtherKeys=2 flag alongside kitty keyboard state
- tests: shifted symbols/layout characters and full-reset restoring legacy bytes

Claude-Session: https://claude.ai/code/session_01GBe292wmocEXM8SjBzjGq7
@simota
simota merged commit e3c1797 into main Sep 5, 2026
1 check passed
@simota
simota deleted the fix/review-7-findings branch September 5, 2026 20:28

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 621b3154d4

ℹ️ 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".

continue;
}
if let Some(state) = group.first().and_then(|id| self.windows.get(id)) {
state.window.select_tab_at_index(saved.focused_tab);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Remap the selected index after failed tab restores

When restoring on macOS, if a tab before the saved selection fails to spawn, the loop continues and group contains only the compacted successful tabs, while saved.focused_tab still indexes the original saved list. Passing that stale index here therefore selects a later tab—or skips selection when it is now out of bounds—so background groups can restore the wrong selected tab. Preserve each successful tab's original index or remap the saved index before calling this method.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

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-05T20:30:12.659747Z 621b315 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 mentioned this pull request Sep 5, 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