Repository navigation
docs(app-dialogs): cut the context down to current behaviour and invariants (#1355) - #1383
Merged
Merged
Conversation
…riants (#1355) State the current behaviour and invariants, correct the exit-question skip conditions, the appAlert rule, replace: true, the restoreFocus list and the background-refusal scope, and drop change-relative phrasing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part 11 of #1355:
.ai/contexts/app-dialogs.mdstates the current behaviour and its invariants, with corrections found while checking every statement against the code.Corrections:
public/file-panel.jsconfirmSessionExit). With no snapshot, an external exit or nothing running, no question is asked at all.appAlertis not used for a failure" was stated as fact.public/archived-manager.js,public/settings-panel.jsandpublic/viewer-toolbar.jsstill report failures with it, so it is now written as a rule that names those callers.replace: true: when another queued question is active and no choice dialog is open, it opens at once on top of it instead of queueing (public/choice-dialog.js).restoreFocus: falselist now includes Resume, which shares New Session's registration.guardResumeon an automatic open: the guard reports it throughonBlocked, and the caller owns what follows. Working-set restore and reload recovery showRestore:batch, and a trigger-file open fails its trigger. An interactive open of a background session without a job id gets the guard's own error notice.Restore:endedalso appears for an interactiveretireanswer that has a reason, and for a refusal markedmissing(the job no longer exists).CODEX_CHOICESsupplies only the sandbox, approval and effort choices; Codex models come from the optional model catalog.Restore:backgroundaction rule,appChoose's initial focus (its confirm button, sometimes labelled Continue) and its callers, and when notices are logged as unmarked.test/modal-stack-order.test.js), and the fact that rendered plan details are part of the logged dialog text.Docs
Agent docs only:
.ai/contexts/app-dialogs.md. No other file changed. All pointers into this file still resolve: the anchors#ui-notice-history-1196(ipc-bridge.md) and#notice-layout-and-severity-1023-item-2(BUILDING-BLOCKS.md), and the bare pointers from contexts, product docs and code comments. No user docs: there is no behaviour change.no-changelog: documentation only; users see nothing.
Tests
node scripts/check-docs.js --validate: passed.node scripts/check-doc-refs.js --root <worktree>: 0 failures.git diff --check: clean.Restore:ended) and one major (CODEX_CHOICESscope) are fixed, plus three size nits: the intro that repeatedcovers, and two repeated sentences.node --test --test-concurrency=1 test/check-docs.test.js(Node 22): 99 pass, 0 fail.test/check-doc-refs.test.js: 16 pass, 0 fail.Not verified
Kept
Headings and levels are unchanged. Kept: every invariant, every reason (main is the authority for trace deletion; the caller ID may contain a label;
onDatamust stay open for protocol replies;planWaitManagedbecause of the 21 s / 20 s watchdog, now with the constant names; why the router sees keys first), every cap and rate limit, every redaction rule, every exact UI string the tests pin, every focus and keyboard rule, the refusal-code table, and every test pointer, with new pointers for the modal router, the choice dialog, the notice log and the unsaved guard. Dropped: change-relative phrasing only ("as before", "existing", "unchanged").