GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Propagate runtime approval policy and sandbox mode to thread turn startup by juliusmarminge · Pull Request #100 · pingdotgg/t3code Conversation
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughAdds optional Changes
Sequence Diagram(s)sequenceDiagram
participant Client as ChatView
participant Decider as Decider
participant Reactor as ProviderCommandReactor
participant Provider as Provider Session
participant Ingest as ProviderRuntimeIngestion
Client->>Decider: dispatch thread.turn.start(approvalPolicy, sandboxMode)
Decider->>Reactor: sendTurnForThread(..., approvalPolicy, sandboxMode)
Reactor->>Provider: ensureSessionForThread -> check existing session
alt session exists & policy/mode unchanged
Reactor->>Provider: reuse session
else session exists & policy/mode changed
Reactor->>Provider: stop session
Reactor->>Provider: start session(approvalPolicy, sandboxMode)
else no session
Reactor->>Provider: start session(approvalPolicy, sandboxMode)
end
Provider-->>Reactor: session details
Reactor->>Ingest: emit thread.session.set(..., approvalPolicy, sandboxMode)
Ingest->>Ingest: update projections / persistence with new fields
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
Or push these changes by commenting:
@cursor push 9ee36a6e77
diff --git a/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts b/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts --- a/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts +++ b/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts @@ -127,6 +127,11 @@ return readModel.threads.find((entry) => entry.id === threadId); }); + const sessionRuntimeSettings = new Map< + string, + { approvalPolicy?: ProviderApprovalPolicy; sandboxMode?: ProviderSandboxMode } + >(); + const ensureSessionForThread = Effect.fnUntraced(function* ( threadId: ThreadId, createdAt: string, @@ -143,7 +148,15 @@ const existingSessionId = thread.session?.providerSessionId; if (existingSessionId) { - return existingSessionId; + const stored = sessionRuntimeSettings.get(threadId); + const runtimeModeChanged = + (options?.approvalPolicy !== undefined && + options.approvalPolicy !== stored?.approvalPolicy) || + (options?.sandboxMode !== undefined && options.sandboxMode !== stored?.sandboxMode); + if (!runtimeModeChanged) { + return existingSessionId; + } + yield* providerService.stopSession({ sessionId: existingSessionId }); } const preferredProvider: ProviderKind | undefined = @@ -163,6 +176,11 @@ ...(options?.sandboxMode !== undefined ? { sandboxMode: options.sandboxMode } : {}), }); + sessionRuntimeSettings.set(threadId, { + approvalPolicy: options?.approvalPolicy, + sandboxMode: options?.sandboxMode, + }); + yield* setThreadSession({ threadId, session: { @@ -314,6 +332,8 @@ yield* providerService.stopSession({ sessionId }); } + sessionRuntimeSettings.delete(thread.id); + yield* setThreadSession({ threadId: thread.id, session: {
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
e33ca5f to
8916262
Compare
There was an error while loading. Please reload this page.
aedb803 to
5fdf30b
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
Or push these changes by commenting:
@cursor push 03dd03cc9e
diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ .env.local build/ .logs/ +.t3/ release/ diff --git a/apps/server/.t3/keybindings.json b/apps/server/.t3/keybindings.json deleted file mode 100644 --- a/apps/server/.t3/keybindings.json +++ /dev/null @@ -1,45 +1,0 @@ -[ - { - "key": "mod+j", - "command": "terminal.toggle" - }, - { - "key": "mod+d", - "command": "terminal.split", - "when": "terminalFocus" - }, - { - "key": "mod+n", - "command": "terminal.new", - "when": "terminalFocus" - }, - { - "key": "mod+w", - "command": "terminal.close", - "when": "terminalFocus" - }, - { - "key": "mod+n", - "command": "chat.new", - "when": "!terminalFocus" - }, - { - "key": "mod+shift+o", - "command": "chat.new", - "when": "!terminalFocus" - }, - { - "key": "mod+shift+n", - "command": "chat.newLocal", - "when": "!terminalFocus" - }, - { - "key": "mod+o", - "command": "editor.openFavorite" - }, - { - "key": "mod+d", - "command": "diff.toggle", - "when": "!terminalFocus" - } -] \ No newline at end of file diff --git a/apps/server/.t3/logs/providers/provider-canonical.ndjson b/apps/server/.t3/logs/providers/provider-canonical.ndjson deleted file mode 100644 diff --git a/apps/server/.t3/logs/providers/provider-native.ndjson b/apps/server/.t3/logs/providers/provider-native.ndjson deleted file mode 100644 diff --git a/apps/server/.t3/state.sqlite b/apps/server/.t3/state.sqlite deleted file mode 100644 --- a/apps/server/.t3/state.sqlite +++ /dev/null @@ -1,196 +1,0 @@ -SQLite format 3������@ �������1�����������������������������������������������������������������.�������������-������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ ����� ������s�D� ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������"���3#2026-02-27 03:19:21Projections-���392026-02-27 03:19:21ProviderSessionRuntime*���332026-02-27 03:19:21CheckpointDiffBlobs3���3E2026-02-27 03:19:21OrchestrationCommandReceipts*���332026-02-27 03:19:21OrchestrationEvents ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������m���U�U�+=U�U��=�872bca1f-73be-4346-8b52-570c4174f728project6d7b7d04-791e-4c47-812b-9f3dcdc91b83project.created2026-02-27T03:19:21.859Zd62dcca7-5310-4e5e-ba59-2602d655f203d62dcca7-5310-4e5e-ba59-2602d655f203client{"projectId":"6d7b7d04-791e-4c47-812b-9f3dcdc91b83","title":"server","workspaceRoot":"/Users/julius/.t3/worktrees/codething-mvp/codething-2c75aea7/apps/server","defaultModel":"gpt-5-codex","scripts":[],"createdAt":"2026-02-27T03:19:21.859Z","updatedAt":"2026-02-27T03:19:21.859Z"}{} -�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������'�U 872bca1f-73be-4346-8b52-570c4174f728 �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������5 orchestration_events -��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������0��U� project6d7b7d04-791e-4c47-812b-9f3dcdc91b83 -��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������0��U project6d7b7d04-791e-4c47-812b-9f3dcdc91b83 -�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������'�U d62dcca7-5310-4e5e-ba59-2602d655f203 -�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������'�U d62dcca7-5310-4e5e-ba59-2602d655f203 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������w��U�U= ��d62dcca7-5310-4e5e-ba59-2602d655f203project6d7b7d04-791e-4c47-812b-9f3dcdc91b832026-02-27T03:19:21.859Zaccepted -�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������'�U d62dcca7-5310-4e5e-ba59-2602d655f203 ... diff truncated: showing 80 of 284 lines
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
5fdf30b to
d79cb63
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
Or push these changes by commenting:
@cursor push 4505053a05
diff --git a/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts b/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts --- a/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts +++ b/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts @@ -186,7 +186,8 @@ const existingSessionId = thread.session?.providerSessionId; if (existingSessionId) { const approvalPolicyChanged = - options?.approvalPolicy !== undefined && options.approvalPolicy !== thread.session?.approvalPolicy; + options?.approvalPolicy !== undefined && + options.approvalPolicy !== thread.session?.approvalPolicy; const sandboxModeChanged = options?.sandboxMode !== undefined && options.sandboxMode !== thread.session?.sandboxMode; @@ -195,7 +196,26 @@ } yield* providerService.stopSession({ sessionId: existingSessionId }); - const restartedSession = yield* startProviderSession(thread.session?.providerThreadId ?? null); + const restartedSession = yield* startProviderSession( + thread.session?.providerThreadId ?? null, + ).pipe( + Effect.tapError(() => + setThreadSession({ + threadId, + session: { + threadId, + status: "error", + providerName: thread.session?.providerName ?? null, + providerSessionId: null, + providerThreadId: thread.session?.providerThreadId ?? null, + activeTurnId: null, + lastError: null, + updatedAt: createdAt, + }, + createdAt, + }), + ), + ); yield* bindSessionToThread(restartedSession); return restartedSession.sessionId; }
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Add `approvalPolicy` and `sandboxMode` to turn-start command and requested payload contracts - Pass runtime mode-derived values from `ChatView` when dispatching `thread.turn.start` - Thread provider options through decider/reactor into session startup, with tests updated
- Persist `approvalPolicy` and `sandboxMode` on orchestration sessions - Reuse existing sessions when runtime mode is unchanged - Stop and recreate provider sessions when runtime mode settings change - Add reactor tests for reuse vs restart behavior
- add default `.t3/keybindings.json` for terminal/chat/editor/diff shortcuts - include initial provider log files and SQLite state artifacts under `apps/server/.t3`
Use conditional spreading for these properties to handle undefined values correctly with exactOptionalPropertyTypes. Co-Authored-By: Claude Opus 4.5 <[email protected]>
b0aff07 to
6158b2a
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@apps/server/src/orchestration/Layers/ProviderCommandReactor.ts`:
- Around line 146-147: desiredApprovalPolicy and desiredSandboxMode currently
fallback to thread.session values, but after an explicit stop those properties
are missing; update the fallback logic so after options you check for
preserved/session-history values before using thread.session directly (e.g.,
options?.approvalPolicy ?? thread.session?.approvalPolicy ??
thread.previousSession?.approvalPolicy ?? defaultApprovalPolicy and similarly
for sandboxMode), and if no such history field exists add and use a stable store
on Thread (e.g., previousSession or sessionSnapshot set before stop) so
ProviderCommandReactor's desiredApprovalPolicy and desiredSandboxMode always
resolve to the last known policy/mode.
- Around line 197-201: The current restart sequence stops the old session via
providerService.stopSession(existingSessionId) before calling
startProviderSession and bindSessionToThread, which can leave the thread bound
to a stale/empty session if start/bind fails; change the flow to first call
startProviderSession(thread.session?.providerThreadId ?? null), then
bindSessionToThread(restartedSession), and only after successful bind call
providerService.stopSession(existingSessionId); alternatively (if stopping first
is required) wrap the startProviderSession/bindSessionToThread calls in a
try/catch and on failure attempt to restore the old session by
re-creating/re-binding existingSessionId so thread.session remains consistent.
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Reviewing files that changed from the base of the PR and between b0aff079bf0ca7309d4b65f2eea2e2d7377c552a and 422160a.
apps/server/src/orchestration/Layers/ProviderCommandReactor.test.tsapps/server/src/orchestration/Layers/ProviderCommandReactor.tsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.tsapps/server/src/orchestration/decider.projectScripts.test.tsapps/server/src/orchestration/decider.tsapps/web/src/components/ChatView.tsxpackages/contracts/src/orchestration.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const desiredApprovalPolicy = options?.approvalPolicy ?? thread.session?.approvalPolicy; | ||
| const desiredSandboxMode = options?.sandboxMode ?? thread.session?.sandboxMode; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fallback policy/mode continuity breaks after explicit session stops.
Line 146 and Line 147 fall back to values on thread.session, but the stop path writes a stopped session without approvalPolicy/sandboxMode, so those fallbacks become unavailable after a stop.
yield* setThreadSession({
threadId: thread.id,
session: {
threadId: thread.id,
status: "stopped",
providerName: thread.session?.providerName ?? null,
providerSessionId: null,
providerThreadId: null,
+ ...(thread.session?.approvalPolicy !== undefined
+ ? { approvalPolicy: thread.session.approvalPolicy }
+ : {}),
+ ...(thread.session?.sandboxMode !== undefined
+ ? { sandboxMode: thread.session.sandboxMode }
+ : {}),
activeTurnId: null,
lastError: thread.session?.lastError ?? null,
updatedAt: now,
},
createdAt: now,
});Verify each finding against the current code and only fix it if needed.
In `@apps/server/src/orchestration/Layers/ProviderCommandReactor.ts` around lines
146 - 147, desiredApprovalPolicy and desiredSandboxMode currently fallback to
thread.session values, but after an explicit stop those properties are missing;
update the fallback logic so after options you check for
preserved/session-history values before using thread.session directly (e.g.,
options?.approvalPolicy ?? thread.session?.approvalPolicy ??
thread.previousSession?.approvalPolicy ?? defaultApprovalPolicy and similarly
for sandboxMode), and if no such history field exists add and use a stable store
on Thread (e.g., previousSession or sessionSnapshot set before stop) so
ProviderCommandReactor's desiredApprovalPolicy and desiredSandboxMode always
resolve to the last known policy/mode.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Make `approvalPolicy` and `sandboxMode` required in orchestration contracts and turn-start flow - Add defaults in provider reactors/ingestion to guarantee values are always set - Store and hydrate both fields in projection persistence, snapshots, and related tests
- Reorder restart flow to bind the new provider session before stopping the old one - Log (and swallow) stop-session failures for superseded sessions - Add regression test ensuring failed restart does not stop the active session
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
apps/server/src/orchestration/Layers/ProviderCommandReactor.ts (1)
201-204:⚠️ Potential issue | 🟠 MajorRestart sequence still has a failure window after the old session is stopped.
At Line 201, the old session is stopped before replacement startup/bind completes. If startup fails, the thread can be left without a recoverable active provider session.
Based on learnings: Keep behavior predictable under load and during failures (session restarts, reconnects, partial streams).
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/server/src/orchestration/Layers/ProviderCommandReactor.ts` around lines 201 - 204, The current sequence calls providerService.stopSession(existingSessionId) before starting and binding the replacement session, which leaves the thread without a recoverable session if startup fails; instead create the new session first (call startProviderSession(thread.session?.providerThreadId ?? null) and bind it with bindSessionToThread(restartedSession)), verify startup succeeded, then atomically swap by stopping the old session via providerService.stopSession(existingSessionId) (or schedule the old session for teardown after confirming the new one is bound); also ensure to handle cleanup on startProviderSession failure (do not stop the old session) and guard against concurrent restarts by using the thread/session restart lock or flag used elsewhere.
apps/server/src/orchestration/projector.test.ts (1)
198-199: Add explicit assertions for the new session runtime fields.This test now provides
approvalPolicy/sandboxModebut does not verify they are projected. As this PR is about propagating these fields, asserting them here would prevent silent regressions.Suggested test assertion patch
const thread = afterRunning.threads[0]; expect(thread?.latestTurnId).toBe("turn-1"); expect(thread?.session?.status).toBe("running"); + expect(thread?.session?.approvalPolicy).toBe("on-request"); + expect(thread?.session?.sandboxMode).toBe("workspace-write");Also applies to: 209-212
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/server/src/orchestration/projector.test.ts` around lines 198 - 199, The test in projector.test.ts sets approvalPolicy and sandboxMode but never asserts them; add explicit assertions that the projected session runtime contains approvalPolicy === "on-request" and sandboxMode === "workspace-write" (e.g. assert on the projected object's session.runtime.approvalPolicy and session.runtime.sandboxMode) in the same two assertion blocks currently validating the projection (the blocks around the existing checks for the projected session), so regressions to propagating these fields are caught.
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts`:
- Around line 29-30: DEFAULT_APPROVAL_POLICY currently set to "never" causes
missing/unknown session policy to silently disable approvals; change the
constant DEFAULT_APPROVAL_POLICY to a fail-safe value (e.g., "explicit" or
whatever ProviderApprovalPolicy value means "require explicit approval") and
update the two fallback branches in ProviderRuntimeIngestion that currently
apply the old default so they either (a) use the new fail-safe default or (b)
throw/return an error when session state/policy is unknown; ensure you update
both places where DEFAULT_APPROVAL_POLICY is referenced in the fallback logic so
unknown policies no longer silently bypass approvals.
In `@apps/server/src/persistence/Migrations/005_Projections.ts`:
- Around line 68-69: Don't edit the existing migration 005_Projections.ts;
instead create a new rollout-safe migration that ALTER TABLEs
projection_thread_sessions to add the two new columns (approval_policy and
sandbox_mode) so existing DBs receive them; in the new migration use ALTER TABLE
... ADD COLUMN for each column, make them either nullable or provide reasonable
DEFAULT values, and include any necessary backfill/update statements and a safe
down migration to remove the columns; reference projection_thread_sessions,
approval_policy, and sandbox_mode when implementing the change.
---
Duplicate comments:
In `@apps/server/src/orchestration/Layers/ProviderCommandReactor.ts`:
- Around line 201-204: The current sequence calls
providerService.stopSession(existingSessionId) before starting and binding the
replacement session, which leaves the thread without a recoverable session if
startup fails; instead create the new session first (call
startProviderSession(thread.session?.providerThreadId ?? null) and bind it with
bindSessionToThread(restartedSession)), verify startup succeeded, then
atomically swap by stopping the old session via
providerService.stopSession(existingSessionId) (or schedule the old session for
teardown after confirming the new one is bound); also ensure to handle cleanup
on startProviderSession failure (do not stop the old session) and guard against
concurrent restarts by using the thread/session restart lock or flag used
elsewhere.
---
Nitpick comments:
In `@apps/server/src/orchestration/projector.test.ts`:
- Around line 198-199: The test in projector.test.ts sets approvalPolicy and
sandboxMode but never asserts them; add explicit assertions that the projected
session runtime contains approvalPolicy === "on-request" and sandboxMode ===
"workspace-write" (e.g. assert on the projected object's
session.runtime.approvalPolicy and session.runtime.sandboxMode) in the same two
assertion blocks currently validating the projection (the blocks around the
existing checks for the projected session), so regressions to propagating these
fields are caught.
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
apps/server/integration/orchestrationEngine.integration.test.tsapps/server/src/orchestration/Layers/CheckpointReactor.test.tsapps/server/src/orchestration/Layers/OrchestrationEngine.test.tsapps/server/src/orchestration/Layers/ProjectionPipeline.test.tsapps/server/src/orchestration/Layers/ProjectionPipeline.tsapps/server/src/orchestration/Layers/ProjectionSnapshotQuery.test.tsapps/server/src/orchestration/Layers/ProjectionSnapshotQuery.tsapps/server/src/orchestration/Layers/ProviderCommandReactor.test.tsapps/server/src/orchestration/Layers/ProviderCommandReactor.tsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.tsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.tsapps/server/src/orchestration/commandInvariants.test.tsapps/server/src/orchestration/decider.tsapps/server/src/orchestration/projector.test.tsapps/server/src/persistence/Layers/ProjectionThreadSessions.tsapps/server/src/persistence/Migrations/005_Projections.tsapps/server/src/persistence/Services/ProjectionThreadSessions.tsapps/server/src/wsServer.test.tspackages/contracts/src/orchestration.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const DEFAULT_APPROVAL_POLICY: ProviderApprovalPolicy = "never"; | ||
| const DEFAULT_SANDBOX_MODE: ProviderSandboxMode = "workspace-write"; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fallback approval policy is overly permissive for unknown session state.
Line 29 defaults to "never", and that value is applied in both fallback paths (Line 378 and Line 488). When policy is missing, this silently disables approvals instead of failing safe.
-const DEFAULT_APPROVAL_POLICY: ProviderApprovalPolicy = "never"; +const DEFAULT_APPROVAL_POLICY: ProviderApprovalPolicy = "on-request";
Also applies to: 378-379, 488-489
Verify each finding against the current code and only fix it if needed.
In `@apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts` around
lines 29 - 30, DEFAULT_APPROVAL_POLICY currently set to "never" causes
missing/unknown session policy to silently disable approvals; change the
constant DEFAULT_APPROVAL_POLICY to a fail-safe value (e.g., "explicit" or
whatever ProviderApprovalPolicy value means "require explicit approval") and
update the two fallback branches in ProviderRuntimeIngestion that currently
apply the old default so they either (a) use the new fail-safe default or (b)
throw/return an error when session state/policy is unknown; ensure you update
both places where DEFAULT_APPROVAL_POLICY is referenced in the fallback logic so
unknown policies no longer silently bypass approvals.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Turn off `preferSchemaOverJson` - Turn off `globalErrorInEffectFailure`
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix prepared fixes for both issues found in the latest run.
Or push these changes by commenting:
@cursor push 7491351d10
diff --git a/apps/server/src/orchestration/Layers/ProjectionPipeline.ts b/apps/server/src/orchestration/Layers/ProjectionPipeline.ts --- a/apps/server/src/orchestration/Layers/ProjectionPipeline.ts +++ b/apps/server/src/orchestration/Layers/ProjectionPipeline.ts @@ -473,8 +473,8 @@ providerName: event.payload.session.providerName, providerSessionId: event.payload.session.providerSessionId, providerThreadId: event.payload.session.providerThreadId, - approvalPolicy: event.payload.session.approvalPolicy, - sandboxMode: event.payload.session.sandboxMode, + approvalPolicy: event.payload.session.approvalPolicy ?? "on-request", + sandboxMode: event.payload.session.sandboxMode ?? "workspace-write", activeTurnId: event.payload.session.activeTurnId, lastError: event.payload.session.lastError, updatedAt: event.payload.session.updatedAt, diff --git a/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts b/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts --- a/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts +++ b/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts @@ -64,7 +64,7 @@ const HANDLED_TURN_START_KEY_MAX = 10_000; const HANDLED_TURN_START_KEY_TTL = Duration.minutes(30); -const DEFAULT_APPROVAL_POLICY: ProviderApprovalPolicy = "never"; +const DEFAULT_APPROVAL_POLICY: ProviderApprovalPolicy = "on-request"; const DEFAULT_SANDBOX_MODE: ProviderSandboxMode = "workspace-write"; const make = Effect.gen(function* () { @@ -279,8 +279,8 @@ ...(message.attachments !== undefined ? { attachments: message.attachments } : {}), ...(event.payload.model !== undefined ? { model: event.payload.model } : {}), ...(event.payload.effort !== undefined ? { effort: event.payload.effort } : {}), - approvalPolicy: event.payload.approvalPolicy, - sandboxMode: event.payload.sandboxMode, + approvalPolicy: event.payload.approvalPolicy ?? DEFAULT_APPROVAL_POLICY, + sandboxMode: event.payload.sandboxMode ?? DEFAULT_SANDBOX_MODE, createdAt: event.payload.createdAt, }); }); diff --git a/packages/contracts/src/orchestration.ts b/packages/contracts/src/orchestration.ts --- a/packages/contracts/src/orchestration.ts +++ b/packages/contracts/src/orchestration.ts @@ -142,8 +142,12 @@ providerName: Schema.NullOr(TrimmedNonEmptyString), providerSessionId: Schema.NullOr(ProviderSessionId), providerThreadId: Schema.NullOr(ProviderThreadId), - approvalPolicy: ProviderApprovalPolicy, - sandboxMode: ProviderSandboxMode, + approvalPolicy: Schema.optional(ProviderApprovalPolicy).pipe( + Schema.withDecodingDefault(() => "on-request" as ProviderApprovalPolicy), + ), + sandboxMode: Schema.optional(ProviderSandboxMode).pipe( + Schema.withDecodingDefault(() => "workspace-write" as ProviderSandboxMode), + ), activeTurnId: Schema.NullOr(TurnId), lastError: Schema.NullOr(TrimmedNonEmptyString), updatedAt: IsoDateTime, @@ -500,8 +504,12 @@ model: Schema.optional(TrimmedNonEmptyString), effort: Schema.optional(TrimmedNonEmptyString), assistantDeliveryMode: Schema.optional(AssistantDeliveryMode), - approvalPolicy: ProviderApprovalPolicy, - sandboxMode: ProviderSandboxMode, + approvalPolicy: Schema.optional(ProviderApprovalPolicy).pipe( + Schema.withDecodingDefault(() => "on-request" as ProviderApprovalPolicy), + ), + sandboxMode: Schema.optional(ProviderSandboxMode).pipe( + Schema.withDecodingDefault(() => "workspace-write" as ProviderSandboxMode), + ), createdAt: IsoDateTime, });
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const HANDLED_TURN_START_KEY_MAX = 10_000; | ||
| const HANDLED_TURN_START_KEY_TTL = Duration.minutes(30); | ||
| const DEFAULT_APPROVAL_POLICY: ProviderApprovalPolicy = "never"; | ||
| const DEFAULT_SANDBOX_MODE: ProviderSandboxMode = "workspace-write"; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Medium Severity
DEFAULT_APPROVAL_POLICY is "never" in ProviderCommandReactor.ts but "on-request" in ProviderRuntimeIngestion.ts. Both are used as fallbacks when thread.session?.approvalPolicy is undefined. This means session status updates from runtime events (e.g., turn.started, session.exited, runtime.error) will record "on-request", while session stops from ProviderCommandReactor will record "never". The "never" default is the less safe option, allowing tools to run without user approval in fallback scenarios.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| providerSessionId: Schema.NullOr(ProviderSessionId), | ||
| providerThreadId: Schema.NullOr(ProviderThreadId), | ||
| approvalPolicy: ProviderApprovalPolicy, | ||
| sandboxMode: ProviderSandboxMode, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
High Severity
Adding approvalPolicy and sandboxMode as required (non-optional) fields to OrchestrationSession and ThreadTurnStartRequestedPayload breaks backward compatibility with events already persisted in the event store. The engine bootstrap replays all events via Schema.decodeUnknownEffect(OrchestrationEvent), and old thread.session-set and thread.turn-start-requested events that lack these fields will fail schema validation, preventing the application from starting. These fields need Schema.optional with a default (or equivalent) to be decode-compatible with pre-existing events.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Merges 137 upstream commits (`d937e3075..36c4e9c`) into the fork, following the `fork-upstream-merge` skill. Landed as a merge commit; conflicts resolved by the inventory's cached verdicts. ## Merge shape 816 files landed (`git diff --stat HEAD^1 HEAD`) against 811 in the upstream range; fork delta 650 files. The gap of five is all in landed and not the range: two fork-owned files touched during resolution (`sandboxControl.placement.test.tsx` test-prop fixup, `useSandboxCommandsBanner.tsx` reformat) plus the three fork docs this merge writes (`inventory.json`, `gaps.md`, `upstream-merge-log.md`). No upstream work was dropped. ## Conflicts Resolved by inventory verdict — `AGENTS.md` (kept the fork's slimmed shape, added Antigravity to the provider list), `contracts/rpc.ts` and `environment.ts`, the ChatView/MessagesTimeline thread-fork + message-origin convergence, the preview cluster (`addBrowserSurface` `profileId` beside the fork's `url`, `rightPanelStore` `openAttachment` beside `retargetFile`), the settings gates, and the two upstream pingdotgg#9364 test deletions. Two latent fork bugs surfaced and were fixed: `PreviewView`'s hosted annotation handler called an unexported helper, now routed through the exported `capturePreviewAnnotationScreenshot` wrapper (matching the sibling native handler); and `ChatView` passed a `configuredUrls` prop the fork's hosted `PreviewPanel` does not accept. ## Unsupported methods `unsupported-methods.mjs` reported ADD 10; recomputed to 0 by adding `UnsupportedMethodError` to the shared `ProviderSetupRpcError` union (nine `provider.auth.*` / `provider.install.*` methods) and to `server.refreshUsageRates`. `gaps.md` grown with a _Provider setup_ bullet and a `refreshUsageRates` clause on _Usage summary_. The three DROP entries (`scripts.run`, `subtasks.list`, `threads.getShell`) are the documented keep-anyway exceptions — `apps/server` still refuses them. ## Feature classification **Usable as-is** (UI only, no backend dependency): mod+w tab close (pingdotgg#9363), PageUp/PageDown chat nav (pingdotgg#9315), diff/PR file tree (pingdotgg#9330), diff-header copy path (pingdotgg#2403), error-report copy (pingdotgg#9166), opt-in context-window indicator (pingdotgg#9190), opt-in panel animations (pingdotgg#8830), proactive panels (pingdotgg#9276), button press feedback (pingdotgg#9349), provider-editor redesign chrome (pingdotgg#8508). **Unsupported in Moatless** (resolve to a refusal): Antigravity provider auth/install and all `provider.*` setup (pingdotgg#9348, pingdotgg#8508), `server.refreshUsageRates`. Desktop-only and already capability- or desktop-gated, so no new fork work: preview browser profiles (pingdotgg#7254), open-links-in-app (pingdotgg#9339), ssh-host suggestions (pingdotgg#9171), environment-as-machine (pingdotgg#9299), continue-threads-across-restart (pingdotgg#9167, rides the new `serverUpdateThreadContinuation` capability). **Backend behavior to reproduce** if Moatless wants it: project icons (pingdotgg#9137, migration 047), auto-pull clean default branches (pingdotgg#9277, migration 045), inline citations (pingdotgg#9146, needs the backend to emit them), the usage page. Migration 046 (RepairAutomaticSettlementTimestamps) is upstream-server-only. Net-zero: context compaction (pingdotgg#8808) landed and was reverted (pingdotgg#9284). ## Verification `fmt:check`, `lint`, `typecheck`, `tripwires` and `inventory-check` green. Full test suite green — one web test failed initially (`addBrowserSurface.test.ts` did not expect the converged default `profileId`), fixed and re-run. Two `verify.mjs` checks exit non-zero and are the caveated machine failures: `unsupported-methods` on the three documented DROP exceptions above, and `duplicate-adds` on three confirmed false positives (`openPreview` in a `ChatView` object literal vs its deps array; three distinct `it()` blocks in `addBrowserSurface.test.ts`). Written by Claude Opus 5 in Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- Moatless task: https://moatless.soaplabstest.com/tasks/4e881239-73d1-4a93-9563-6a926e920b42
…14-2 chore(sync): merge pingdotgg/t3code main
…MCP Apps panels' (pingdotgg#100) from T3CODE-74-mcp-native-plugins into custom-local
…gg#100) from sync/upstream-2026-11-02 into dev Reviewed-on: https://git.nepjua.org/yasinuslu/t3code/pulls/100
…tion pingdotgg#102) 真实根因(隔离复现 + DOM dump + 基线对照实验证实,推翻 pingdotgg#102 的 fakeEnvironment 404 归因): - app-open-settings / app-switch-settings-section:断言英文字符串(Time format / Interface),运行时 UI 经 tr() 汉化(时间格式/界面),expect.element poll 永不匹配 → 60s 超时。断言改走 tr(),随字典自动同步(ADR-0005「测试断言中文化」口径)。 - warm up / app-toggle-diff-panel:Ctrl+D 不匹配 macOS 的 mod+d(isMacPlatform → Cmd),面板永不打开;chord 按 isMacPlatform(navigator.platform) 平台感知。 - 404 归因证伪:shellSnapshotHttp / boundedThreadSnapshotHttp 均 catchCause 回退 socket(fake 注释声明的设计意图),连接正常建立;修复方向 a)/b) 前提不成立。 - 「合并前全绿」证据不成立:基线 25bf84a 实测 app-toggle-diff-panel 同样 60s 超时,两根因与上游合并无关。 验证:4 场景转绿(1-4s,原 60s 超时);renders 项目 14/14 全绿(含 pingdotgg#100 验收 app-stream-assistant-turn);vp lint 0 警告 0 错误。
…window (pingdotgg#100) Claude and Pi turns now publish token usage while they run, including Claude's own subagents and Pi's subagent tool, and the usage panel re-reads it every 30 seconds while a thread runs. Claude turns settle each result window from one source per scope, with usage billed from frames carried until the process's ledger bills it.
Merge pinned main 9f1ace1 into imessage/marker-cross-thread-reads at 63b8c88. Merge base: 8c61334. Preserve pingdotgg#83 marker/cross-thread polling, pingdotgg#50-equivalent records, tick attribution, separate gate-admitted physical read counters and bounded outage logs alongside main's bounded scans, loop-stall diagnostics and wake delivery waits (pingdotgg#105/pingdotgg#108), Moni boundary (pingdotgg#73) and outage detail (pingdotgg#100). Intent sources: both base-to-side diffs and full commit messages, including 34667c0, 77c3c89, 273e77d, 6802d61 and 8eb5542. Conflict decision: one hunk in integrations/spectrum-bridge/src/toollog.ts:40, classified disjoint-intent, with three independent subdecisions: - ID_KEYS: retain HEAD's complete set, including tickId. It contains all main IDs, including outageId, so tick attribution and correlation coexist. - WAKE_EVENTS: retain main's seven-event set, adding wake.waiting to all six existing events. Bounded wait diagnostics survive the already-merged wake metadata filter and cap exemptions. - NUMBERS: retain HEAD's complete set. It contains every main numeric key plus markerPolls, crossThreadReads, crossThreadPages, markerSkips, fallbacks, trackedThreads, detailReads, evidenceReads, discoveryReads, markerChecks and crossThreadChecks. downMs, skippedCalls and failedProbes remain. Each resulting declaration is exactly the union of both sides. No competing product answer or superseded behavior was selected. Only this marked conflict region was manually edited. Every byte outside it and all 31,695 other index entries match the halted merge, including router.ts, main.ts, sb-main.ts and runtime log isolation. The repeated allowlist conflict remains a hotspot already flagged by the parent. Validation: - bun test test/toollog.test.ts: 46 pass, 0 fail, 158 assertions. - git diff --cached --check passed; no staged conflict markers remain. - Pinned parents, reviewed index and tree reconfirmed immediately before commit. Parent owns exact-merged-head Sol re-review and both unchanged packet commands offbox. Predecessor receipts do not certify this merge. No push, deploy, restart, install, offbox, broad suite or live DB access.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.