Skip to content

fix: an agent opening a project waits for the discard prompt - #13

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

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

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • formsurface_open_project no longer replaces unsaved work. The window asks the person with its Discard Changes dialog and the agent call waits for the answer. Cancel or no answer within answer_within_seconds (5 to 600, default 120) refuses the call and keeps the document.
  • Added an optional answer_within_seconds argument to formsurface_open_project. The relay timeout grows by the same amount.
  • The new dialog line 'An agent asks to open {0}.' is translated into every language the app has.
  • Added a window test for Cancel, no answer, Discard Changes and opening a clean document, and MCP tests for passing on and checking the answer time.
  • Updated the Painting with Agents wiki page and the painting skill's tool reference.

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.

…ved changes

formsurface_open_project no longer replaces a document that has unsaved
changes. The window shows its Discard Changes dialog with a line naming
the project the agent asked for, and the agent call waits for the answer.
Discard Changes opens the project; Cancel, or no answer within
answer_within_seconds (5 to 600, default 120), refuses the call and keeps
the document as it was. Other agent calls wait while the dialog is open.
A document with no unsaved changes opens without asking, as before.

The new dialog line is in every language table.
…nsaved changes

An agent open_project over unsaved changes now checks the library first.
A name that is not a saved project is refused at once instead of showing
the Discard Changes dialog for a project that could not open.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 21:21
@nodemode-ai
nodemode-ai merged commit ac0e9e1 into main Nov 30, 2026
7 checks passed
@nodemode-ai
nodemode-ai deleted the fix/owner-decisions-2026-11-29 branch November 30, 2026 18: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