Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

Merge origin/main into feat/report-issue

enes0f4f63b31272
diff --cc src/main/canvas-control-core.test.ts
index a7dced2f3,b8b71bc8b..ab352d29c
--- a/src/main/canvas-control-core.test.ts
+++ b/src/main/canvas-control-core.test.ts
@@@ -15,12 -15,15 +15,20 @@@ import
import { RETRYABLE } from '../core/agents/agent-message-decide'
import { PROJECT_TARGETABLE_VERBS } from '../core/project-grants'
import { DRY_RUN_VERBS } from '../shared/control-verbs'
- import { SETTINGS_VERB_KEYS, SETTINGS_VERB_KEY_LIST } from '../shared/settings-verb'
+ import {
+ SETTINGS_VERB_FORBIDDEN,
+ SETTINGS_VERB_KEYS,
+ SETTINGS_VERB_KEY_LIST,
+ readSettingsValue
+ } from '../shared/settings-verb'
+ import { decideControlConfirm, isWaivableVerb } from '../shared/control-confirm'
+ import { DEFAULT_SETTINGS } from '../shared/types'
+ import { serverSettingsControl } from '../server/settings-control'
+import {
+ REPORT_CAP_PER_DAY,
+ REPORT_CAP_PER_RUN,
+ REPORT_LABEL
+} from '../core/github/report-issue-core'
import { STRICT_CONTROL_VERBS } from '../core/agents/node-identity-policy'
import { BROWSER_ACTION_KEYS } from '../core/browser-verb'
import { BROWSER_RETRYABLE, BROWSER_OUTCOME_LABEL } from '../core/browser-outcomes'
diff --cc src/shared/settings-verb.test.ts
index c1f9473cc,207611605..6328346ae
--- a/src/shared/settings-verb.test.ts
+++ b/src/shared/settings-verb.test.ts
@@@ -27,23 -27,61 +27,64 @@@ describe('the allowlist is the gate, an
}
})
- it('the forbidden set covers what a human must decide', () => {
- for (const key of [
- 'claudePermissionMode',
- 'defaultPermissionMode',
- 'hookIdentityStrict',
+ it('the allowlist is EXACTLY this — adding a key is a reviewed test edit, not a silent one', () => {
+ // The walk above (not forbidden, not pattern-matched) cannot see a brand-new key the pattern
+ // misses — `agentHibernationEnabled` allowlisted in one edit left every related suite green
+ // (measured). An exact snapshot makes ADDING a key as loud as removing a forbidden one: both are
+ // now a decision somebody signs for, beside the `why` the table already requires.
+ expect([...SETTINGS_VERB_KEY_LIST].sort()).toEqual([
+ 'agentMessaging',
+ 'defaultNodeHeight',
+ 'defaultNodeWidth',
+ 'gridSize',
+ 'snapToGrid'
+ ])
+ })
+
+ it('the forbidden set is EXACTLY this — removing a member is a reviewed test edit, not a silent one', () => {
- // A membership snapshot, not a sample and not a loop over the set (which is a tautology). Two
- // members escape SETTINGS_VERB_FORBIDDEN_PATTERN and cannot be caught by widening it:
- // `customAgents` (it defines what command a custom agent runs) and `agentMessagingDefault` —
- // the obvious `agent` term would also forbid `agentMessaging`, the key this verb exists to set.
++ // A membership snapshot, not a sample and not a loop over the set (which is a tautology).
++ // THREE members escape SETTINGS_VERB_FORBIDDEN_PATTERN and cannot be caught by widening it:
++ // `customAgents` (it defines what command a custom agent runs), `agentMessagingDefault` — the
++ // obvious `agent` term would also forbid `agentMessaging`, the key this verb exists to set —
++ // and `agentIssueReporting`, where none of `report`, `issue` or `github` is a forbidden name
++ // class and adding one would be guessing at words rather than at capabilities.
+ // For those two the set is the only fence, so the only change that could make them settable —
+ // allowlist the key AND drop it from the set, in one edit — must redden a test. This one.
+ expect([...SETTINGS_VERB_FORBIDDEN].sort()).toEqual([
'agentBrowserControl',
++ 'agentIssueReporting',
+ 'agentLaunchCommands',
+ 'agentMessagingDefault',
+ 'capabilityAck',
'claudeAccounts',
+ 'claudePermissionMode',
'codexAccounts',
+ 'commitAgentCommand',
+ 'confirmBeforeQuit',
+ 'controlConfirmWaivers',
+ 'customAgents',
+ 'defaultAccountId',
+ 'defaultPermissionMode',
+ 'defaultShell',
+ 'hookIdentityStrict',
+ 'hookReplyApprovals',
+ 'keybindings',
'modelGateway',
+ 'modelGatewayDefaultModel',
+ 'phoneAccessEnabled',
'telemetryEnabled',
- 'keybindings',
- 'controlConfirmWaivers',
- 'capabilityAck',
- 'agentMessagingDefault'
- ]) {
- expect((SETTINGS_VERB_FORBIDDEN as ReadonlySet<string>).has(key), key).toBe(true)
- }
+ 'terminalShortcutPolicy',
+ 'vanillaLaunchDefault'
+ ])
+ })
+
+ it('the keys the pattern cannot see are named, so the snapshot above is known to be load-bearing', () => {
+ // A deliberate TRIPWIRE: a future forbidden key the pattern also cannot see reddens this, and
+ // adding it here is the correct response — it records that the set is that key's only fence.
+ expect(
+ [...SETTINGS_VERB_FORBIDDEN].filter((k) => !SETTINGS_VERB_FORBIDDEN_PATTERN.test(k)).sort()
- ).toEqual(['agentMessagingDefault', 'customAgents'])
++ ).toEqual(['agentIssueReporting', 'agentMessagingDefault', 'customAgents'])
+ for (const key of SETTINGS_VERB_KEY_LIST) expect(SETTINGS_VERB_FORBIDDEN_PATTERN.test(key), key).toBe(false)
})
it('the name pattern catches forbidden classes nobody has named yet', () => {
diff --cc src/shared/settings-verb.ts
index 634c8217f,3f3b49e6c..48c37473e
--- a/src/shared/settings-verb.ts
+++ b/src/shared/settings-verb.ts
@@@ -127,12 -127,6 +127,13 @@@ export const SETTINGS_VERB_FORBIDDEN =
'hookIdentityStrict',
// Browser control — a capability that acts as the user on the web.
'agentBrowserControl',
+ // Issue reporting — the only capability whose effect LEAVES THE MACHINE. An agent that could
- // switch on its own auto-reporting is a self-granting loop aimed at a public tracker, so this
- // is never settable from the CLI whatever the allowlist says. (The name pattern below does not
- // catch it — none of "issue", "report" or "github" is a forbidden name class — so this explicit
- // entry is the whole fence.)
++ // switch on its own auto-reporting is a self-granting loop aimed at a public tracker, so this is
++ // never settable from the CLI whatever the allowlist says. The name pattern below does NOT catch
++ // it (none of "report", "issue" or "github" is a forbidden name class, and adding one would be
++ // guessing at words rather than at capabilities), so this entry is the key's ONLY fence — which
++ // is why it is also named in settings-verb.test.ts's escapees tripwire.
+ 'agentIssueReporting',
// This machine's consent record for capabilities; writable only by the human's answer.
'capabilityAck',
// Accounts, credentials, model gateway, and anything that decides WHAT COMMAND runs.