Skip to content

fix: seal the Claude first message and folder settings - #18

Merged
nodemode-ai merged 3 commits into
mainfrom
fix/owner-decisions-2026-11-29
Nov 30, 2026
Merged

nodemode-ai merged 3 commits into
mainfrom
fix/owner-decisions-2026-11-29

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Seal the Claude Code folder and first message with the agent choice. A change made outside the app empties them and puts agent access back to Ask.
  • A settings file saved before they were sealed is updated once: values are kept, agent access goes back to Ask if agents were allowed, and the window shows a one-time note explaining why. A keychain item records that the update ran.
  • POST /api/settings accepts sealNote only to clear it; toast() takes an optional hold time.
  • New tests in backend/tests/test_seal.py; the manual, the security notes and both HASHOUT logs are updated; the note is translated in every language table.

Tests

  • Each change has tests that fail on the code before it.
  • The repo's CI commands were run locally on macOS; every local failure also fails on main in the same environment. Please rely on this PR's CI for Linux and Windows.

How to ship

  • Follows the earlier hardening PR, already merged. Independent of other repos. No version bump.

The Claude Code folder and first message are now sealed with the agent
choice. A change to either made outside the window reads as broken:
both are emptied with the program places and agent access goes back to
Ask, or stays Blocked.

A settings file saved before they were sealed is updated once: its
values are kept and resealed, and when it allowed agents, access goes
back to Ask and a one-time note is stored for the window. A keychain
item records that the update ran, so it happens only once. The window
can clear the note through the settings route. Adds tests and updates
the manual and the security notes.
When the engine reports that agent access went back to Ask because the
Claude Code folder and first message are now sealed, the window shows
a note at start, held for 20 seconds, and then clears it so it shows
once. The toast takes an optional hold time. The note is in every
language table.
The keychain item that marks the one-time update is now written and
read back before the updated settings file is stored. When the keychain
will not keep it, the file is left as it is and the strict reading
applies, so the update cannot run again at a later start and accept a
Claude Code folder or first message added by hand. Adds a test.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 21:20
@nodemode-ai
nodemode-ai merged commit c6367e2 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/owner-decisions-2026-11-29 branch November 30, 2026 18:15
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.

2 participants