Skip to content

fix: close 2026-09 audit findings across config, sixel, kitty, ipc, and paste - #73

Merged
simota merged 2 commits into
mainfrom
fix/audit-2026-09
Sep 6, 2026
Merged

fix: close 2026-09 audit findings across config, sixel, kitty, ipc, and paste#73
simota merged 2 commits into
mainfrom
fix/audit-2026-09

Conversation

@simota

@simota simota commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • config: atomic save creates the temp file 0600 with a unique name and carries the existing file's mode over the rename, so a config holding server-token no longer widens to the umask default
  • sixel: geometric canvas growth per axis (was O(height × width²) for column-at-a-time streams); DEC HLS hue 0 = blue; P2 0/2 fill with the terminal background, 1 transparent
  • kitty: d=n/N honours p= and resolves the numbered image via get_by_number; uppercase delete frees images that were transmitted but never placed
  • ipc: keep the absolute hello deadline enforced at the stream level after the WS handshake, since tungstenite's read loops until a full message
  • paste: bracketed-frame bytes come out of the 8 MiB cap so a capped AppleScript/sendText payload is not rejected by the pty budget

Test plan

  • cargo test --offline -p noa-grid -p noa-config -p noa-ipc -p noa-vt -p noa-app — all pass
  • New tests: sixel column_growth_preserves_height_capacity / row_growth_preserves_width_capacity, kitty delete-by-number / unplaced-image cases, paste cap test
  • Note: remote_attach::tests::transient_scrollback_failure_is_retried_for_the_active_generation flaked once in the full run (file untouched by this branch; passes 3/3 in isolation)

https://claude.ai/code/session_01GBe292wmocEXM8SjBzjGq7

… paste

- config: atomic save creates the temp file 0600 with a unique name and
  carries the existing file's mode over the rename, so a config holding
  `server-token` no longer widens to the umask default
- sixel: geometric canvas growth (was O(height x width^2) for column-at-a-
  time streams); DEC HLS hue 0 = blue; P2 0/2 fill with the terminal
  background, 1 transparent
- kitty: `d=n/N` honours `p=`; uppercase delete frees images that were
  transmitted but never placed
- ipc: keep the absolute hello deadline enforced at the stream level after
  the WS handshake, since tungstenite's read loops until a full message
- paste: bracketed-frame bytes come out of the 8 MiB cap so a capped
  AppleScript/sendText payload is not rejected by the pty budget

Claude-Session: https://claude.ai/code/session_01GBe292wmocEXM8SjBzjGq7
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 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-06T09:12:14.443328Z 1cd7fd9 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 053499b into main Sep 6, 2026
1 check passed
@simota
simota deleted the fix/audit-2026-09 branch September 6, 2026 09:09

@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: 1cd7fd94d6

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

Comment on lines +323 to +326
KittyDelete::ByNumber { .. } => self
.kitty_images
.get_by_number(cmd.image_number)
.map(|image| image.id),

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 Reject number deletes without an image number

When d=N omits I=, cmd.image_number is the documented “unspecified” sentinel 0, but this lookup resolves the newest image stored under number zero. Since unnumbered transmissions are indexed under zero, the new direct-candidate cleanup then frees an unrelated image that was transmitted with a=t but never placed. Guard cmd.image_number != 0, as the ID deletion path does, so a missing number cannot target image data.

Useful? React with 👍 / 👎.

@simota simota mentioned this pull request Sep 6, 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