Skip to content

fix: Always allow needs a system keyring, otherwise agents are asked - #38

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

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

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When no system keyring is available, the outside-agents choice fails closed: a stored Allowed reads as Ask, Allowed cannot be chosen, and the question in the window offers only Deny and Allow once.
  • Preferences, Agents shows a plain note when Allowed and Always allow need a system keyring on this computer, and greys out Allowed. GET /api/agents reports keyring.
  • Engine tests use an in-memory keyring by default, so no test reaches the system keyring.
  • The manual, the wiki Agents page and the backend decision log describe the new behaviour.

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.

…allow is not offered

When no system keyring answers, the outside-agents seal cannot be made, so a stored Allowed now reads as Ask, Allowed cannot be chosen, the question in the window offers only Deny and Allow once, and Preferences shows a note and greys out Allowed. With a keyring nothing changes.
Tests use an in-memory keyring by default, so none reaches the system one.
Allowed now makes the seal key before it is written and is refused when the keyring will not keep it, so an unsealed yes is never stored, and an Always answer in that case counts as Allow once.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 20:09
@nodemode-ai
nodemode-ai merged commit 4c342e5 into main Nov 29, 2026
14 checks passed
@nodemode-ai
nodemode-ai deleted the fix/owner-decisions-2026-11-29 branch November 29, 2026 20:16
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