Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
99f85c9
Separate editor tab placement from content ownership
brennanb2025 Nov 6, 2026
93a5829
Show scoped Source Control sections for attached worktrees
brennanb2025 Nov 6, 2026
3a5be8d
Preserve active diff refresh and validate section catalogs
brennanb2025 Nov 6, 2026
377b192
Complete folder section test worktree metadata
brennanb2025 Nov 6, 2026
508acba
Use contextual types for scoped Source Control actions
brennanb2025 Nov 6, 2026
42ff26c
Preserve optional scoped action parameters
brennanb2025 Nov 6, 2026
cb8c437
Preserve editor ownership through restore, mirroring and workspace re…
brennanb2025 Nov 6, 2026
afd5e79
Retire Source Control drafts only after confirmed owner removal
brennanb2025 Nov 6, 2026
012924a
Limit section work to visible expanded repositories
brennanb2025 Nov 6, 2026
fb4c7e0
Keep editor follow-up actions and bulk closes in their invoking views
brennanb2025 Nov 6, 2026
dba7ab6
Track the consolidated editor order writer in its owning module
brennanb2025 Nov 6, 2026
a2e94ff
Use complete typed fixtures for repair contracts
brennanb2025 Nov 6, 2026
4407f53
Preserve live editor placement during layout readback
brennanb2025 Nov 6, 2026
a382456
Pass projected editor placement directly to serialization
brennanb2025 Nov 6, 2026
f0af280
Merge main for shared workspace lineage resolution
brennanb2025 Nov 6, 2026
51df133
Read attached worktree lineage from shared graph module
brennanb2025 Nov 6, 2026
16c490d
Retain inferred owner checks and scope placement retirement
brennanb2025 Nov 6, 2026
069d1cb
Preserve selection in untouched workspaces during purge
brennanb2025 Nov 6, 2026
c48b55e
Exercise editor placements in existing launch and lifecycle fixtures
brennanb2025 Nov 6, 2026
18168b3
Preserve shared buffer prompts and editor strip order
brennanb2025 Nov 6, 2026
e621180
Pause inactive section context subscriptions
brennanb2025 Nov 6, 2026
38335b5
Keep section recovery and file actions in the folder workspace
brennanb2025 Nov 6, 2026
ecc9eb8
Describe attached Source Control in folder workspace CLI help
brennanb2025 Nov 6, 2026
ad5dc48
Attribute Git metadata signals once per dispatch
brennanb2025 Nov 6, 2026
62c2f26
Watch mounted source control sections outside the warm budget
brennanb2025 Nov 6, 2026
405d2ea
Resolve section watches only for served filesystem roots
brennanb2025 Nov 6, 2026
3e862a8
Restore restart-stable editor identity across SSH opens
brennanb2025 Nov 6, 2026
43639ab
Apply section terminal routing to explicit Chat choices
brennanb2025 Nov 6, 2026
844c719
Include cross-store descendants in folder workspace panels
brennanb2025 Nov 6, 2026
89a18b4
Keep cross-host recovery on its existing workspace route
brennanb2025 Nov 6, 2026
89911e5
Start cross-host section agents in their workspace without navigation
brennanb2025 Nov 6, 2026
489ef35
Update memoized Source Control labels on language changes
brennanb2025 Nov 6, 2026
1028e5f
Remove unused terminal close-to-right implementation
brennanb2025 Nov 6, 2026
6eb4bd6
Suspend inactive Source Control body observers
brennanb2025 Nov 6, 2026
149d095
Retain base ref query while section observation pauses
brennanb2025 Nov 6, 2026
22b196c
Cover retained base ref search across section visibility
brennanb2025 Nov 6, 2026
dbbc85d
Resolve note menu ownership from the retained snapshot
brennanb2025 Nov 6, 2026
4c43cbe
Preserve section agent working directories and background placement
brennanb2025 Nov 6, 2026
7b98c28
Keep Source Control sections active while their overlays are open
brennanb2025 Nov 6, 2026
8e71210
Read current settings when Source Control commands execute
brennanb2025 Nov 6, 2026
1e7fd19
Merge origin/main for folder Source Control CI
brennanb2025 Nov 6, 2026
b06a3c7
Adapt editor and browser test stores to view subscriptions
brennanb2025 Nov 6, 2026
8abd7ba
Preserve bound store hooks for ordinary app views
brennanb2025 Nov 6, 2026
e4ab7cf
Trust agent starts outside the placement workspace
brennanb2025 Nov 6, 2026
828b178
Trust the section worktree through transient launch ownership
brennanb2025 Nov 6, 2026
4c8c327
Extract editor follow-up file actions from the panel
brennanb2025 Nov 6, 2026
11f02b2
Fail section launches when trust capability lookup fails
brennanb2025 Nov 6, 2026
8fdc999
Merge main into folder workspace Source Control
brennanb2025 Nov 6, 2026
3df1659
Merge main into folder workspace Source Control
brennanb2025 Nov 6, 2026
a7304a1
Follow the moved pane launch test in web configs
brennanb2025 Nov 6, 2026
611c71b
Preserve section file ownership during refresh and close
brennanb2025 Nov 6, 2026
15de3e8
Share tab order removal across editor close paths
brennanb2025 Nov 6, 2026
9f09df8
Verify companion editor close through the real store
brennanb2025 Nov 6, 2026
5e91fc0
Close all workspace split copies for legacy mobile file requests
brennanb2025 Nov 6, 2026
2c2bbe3
Keep unmatched mobile close requests within their workspace
brennanb2025 Nov 6, 2026
f534514
Reuse the agent menu render snapshot
brennanb2025 Nov 6, 2026
dc03689
Merge main and preserve folder Source Control ownership
brennanb2025 Nov 7, 2026
fbc3671
Merge main and retain section launch coverage
brennanb2025 Nov 7, 2026
b65ded9
Keep attached folder roots scoped to their resolved host
brennanb2025 Nov 7, 2026
63cdc9f
Merge main into folder workspace source control
brennanb2025 Nov 7, 2026
b8549e9
Apply repository trust decisions to the launch trust owner
brennanb2025 Nov 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions config/focus-setting-read-baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This is a RATCHET: counts may only go DOWN. Only creation flows with no source row may read
# the default host, through defaultCreationHost. Everything else routes by the owner.
# Prune after removing reads: pnpm check:focus-read-ratchet --prune
1 src/renderer/src/app-shell/ActiveWorkspaceSyncGate.tsx
3 src/renderer/src/app-shell/ActiveWorkspaceSyncGate.tsx # existing watch selector now visible through useCallback; includes its import-path occurrence
2 src/renderer/src/app-shell/use-app-shell-services.ts
2 src/renderer/src/App.tsx
1 src/renderer/src/component-fixtures/component-fixture-explorer.tsx # dev-only fixture page seeds default settings
Expand Down Expand Up @@ -181,7 +181,7 @@
1 src/renderer/src/components/terminal-pane/use-terminal-pane-lifecycle.ts
1 src/renderer/src/components/terminal-pane/use-terminal-pane-mount-lifecycle.ts
1 src/renderer/src/components/terminal/terminal-tab-actions.ts
4 src/renderer/src/components/terminal/terminal-tab-bulk-actions.ts
2 src/renderer/src/components/terminal/terminal-tab-bulk-actions.ts
2 src/renderer/src/components/terminal/terminal-tab-create.ts
2 src/renderer/src/components/use-new-linear-issue-projects.ts
4 src/renderer/src/components/task-page/jira/use-task-page-jira-creation-metadata.ts
Expand Down
14 changes: 7 additions & 7 deletions config/main-layout-writer-baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,27 @@
1 src/main/persistence/tracking-repos/project-group-operations.ts
4 src/main/persistence/tracking-repos/repo-worktree-pruning.ts
3 src/main/persistence/tracking-repos/worktree-identity-migration.ts
2 src/main/pty/scrollback/terminal-scrollback-snapshots.ts
1 src/main/runtime/browser/client-pages/client-hosted-browser-page-persistence.ts
1 src/main/runtime/client/runtime-client-state.ts
1 src/main/runtime/mobile-session-editor-projection.ts
3 src/main/runtime/terminal/surface/mobile-session-layout-projection.ts
4 src/main/runtime/runtime-legacy-worker-terminal-recovery-persistence.ts
2 src/main/runtime/terminal/launch/runtime-pane-admission.ts
7 src/main/runtime/terminal/adoption/runtime-terminal-orphan-session-adoption.ts
1 src/main/runtime/workspaces/session-hosts/runtime-workspace-session-controller.ts
2 src/main/runtime/session-graph/session-graph-promotion.ts
2 src/main/runtime/session-lifecycle/projection/apply-mobile-session-tab-navigation.ts
2 src/main/runtime/session-lifecycle/projection/build-headless-mobile-session-browser-tabs.ts
2 src/main/runtime/session-tabs/headless-tab-group-moves.ts
6 src/main/runtime/session-tabs/headless-tab-properties.ts
2 src/main/runtime/session-tabs/headless-terminal-tab-titles.ts
1 src/main/runtime/session-tabs/structured-session-tab-close.ts
1 src/main/runtime/session-tabs/terminal-surface-retirements.ts
2 src/main/runtime/terminal/adoption/adopt-terminal-orphans-from-inventory.ts
7 src/main/runtime/terminal/adoption/runtime-terminal-orphan-session-adoption.ts
1 src/main/runtime/terminal/driver/terminal-driver-resources.ts
3 src/main/runtime/terminal/stop/worktree-terminal-stop.ts
4 src/main/runtime/terminal/identity/workspace-session-worktree-id.ts
2 src/main/runtime/terminal/launch/runtime-pane-admission.ts
3 src/main/runtime/terminal/stop/worktree-terminal-stop.ts
3 src/main/runtime/terminal/surface/mobile-session-layout-projection.ts
1 src/main/runtime/workspaces/session-hosts/get-runtime-id.ts
2 src/main/runtime/session-tabs/headless-terminal-tab-titles.ts
1 src/main/runtime/workspaces/session-hosts/runtime-workspace-session-controller.ts
1 src/main/ssh/orcad-migration-source-retention.ts
1 src/main/ssh/targets/ssh-target-id-migration.ts
2 src/main/pty/scrollback/terminal-scrollback-snapshots.ts
22 changes: 13 additions & 9 deletions config/renderer-layout-writer-baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
7 src/renderer/src/lib/workspace/persistence/workspace-session-hydration-keys.ts
25 src/renderer/src/lib/workspace/persistence/workspace-session-patch.ts
3 src/renderer/src/lib/workspace/persistence/workspace-session-staged-browser-tabs.ts
1 src/renderer/src/lib/workspace/persistence/workspace-session-unified-tabs.ts
17 src/renderer/src/lib/workspace/persistence/workspace-session.ts
3 src/renderer/src/runtime/local-structured-session-tabs-sync/snapshot-projection.ts
3 src/renderer/src/runtime/structured-agent-session-tab-retirement.ts
Expand All @@ -52,21 +53,21 @@
5 src/renderer/src/store/slices/browser/browser-page-focus-actions.ts
2 src/renderer/src/store/slices/browser/browser-page-state-actions.ts
1 src/renderer/src/store/slices/browser/browser-tab-actions.ts
5 src/renderer/src/store/slices/browser/browser-tab-open-view.ts # extracted from browser-tab-actions.ts
4 src/renderer/src/store/slices/browser/browser-tab-focus-actions.ts
5 src/renderer/src/store/slices/browser/browser-tab-open-view.ts # extracted from browser-tab-actions.ts
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
2 src/renderer/src/store/slices/browser/create-browser-slice.ts
9 src/renderer/src/store/slices/editor/actions/check-run-details-actions.ts
7 src/renderer/src/store/slices/editor/actions/close-file-action.ts
6 src/renderer/src/store/slices/editor/actions/close-file-action.ts
1 src/renderer/src/store/slices/editor/actions/git-status-actions.ts
4 src/renderer/src/store/slices/editor/actions/hydrated-editor-session-state.ts
3 src/renderer/src/store/slices/editor/actions/markdown-preview-actions.ts
27 src/renderer/src/store/slices/editor/actions/open-combined-diff.ts
13 src/renderer/src/store/slices/editor/actions/open-conflict-file.ts
14 src/renderer/src/store/slices/editor/actions/open-conflict-review.ts
4 src/renderer/src/store/slices/editor/actions/open-file-apply.ts
3 src/renderer/src/store/slices/editor/actions/open-combined-diff.ts
1 src/renderer/src/store/slices/editor/actions/open-conflict-file.ts
6 src/renderer/src/store/slices/editor/actions/open-conflict-review.ts
3 src/renderer/src/store/slices/editor/actions/open-file-apply.ts
3 src/renderer/src/store/slices/editor/actions/open-file-mutations.ts
7 src/renderer/src/store/slices/editor/actions/open-file-state.ts
26 src/renderer/src/store/slices/editor/actions/open-history-diff.ts
2 src/renderer/src/store/slices/editor/actions/open-history-diff.ts
1 src/renderer/src/store/slices/editor/actions/open-unstaged-diff.ts
10 src/renderer/src/store/slices/editor/actions/recently-closed-editor-tabs.ts
2 src/renderer/src/store/slices/editor/actions/rekey-open-files-action.ts
Expand All @@ -76,14 +77,17 @@
2 src/renderer/src/store/slices/editor/file-ids/hydrated-editor-file-selection.ts
1 src/renderer/src/store/slices/editor/file-ids/open-file-path-rekey.ts
4 src/renderer/src/store/slices/editor/tabs/editor-open-target-group.ts
1 src/renderer/src/store/slices/editor/tabs/workspace-editor-files.ts
2 src/renderer/src/store/slices/tab-group-reference-repair.ts
4 src/renderer/src/store/slices/tab-group-state.ts
1 src/renderer/src/store/slices/tabs-hydration.ts
4 src/renderer/src/store/slices/tabs/create-tabs-slice.ts
17 src/renderer/src/store/slices/tabs/tabs-close-actions.ts
12 src/renderer/src/store/slices/tabs/rename-worktree-layout.ts
9 src/renderer/src/store/slices/tabs/tabs-close-actions.ts
14 src/renderer/src/store/slices/tabs/tabs-create-actions.ts
23 src/renderer/src/store/slices/tabs/tabs-drag-preview-actions.ts
11 src/renderer/src/store/slices/tabs/tabs-drop-actions.ts
8 src/renderer/src/store/slices/tabs/tabs-empty-workspace.ts
4 src/renderer/src/store/slices/tabs/tabs-focus-actions.ts
12 src/renderer/src/store/slices/tabs/tabs-group-actions.ts
1 src/renderer/src/store/slices/tabs/tabs-host-mirroring.ts
Expand All @@ -93,7 +97,7 @@
4 src/renderer/src/store/slices/tabs/tabs-session-actions.ts
1 src/renderer/src/store/slices/tabs/tabs-split-ratio-actions.ts
5 src/renderer/src/store/slices/tabs/tabs-surface.ts
33 src/renderer/src/store/slices/tabs/worktree-layout-lifecycle.ts
24 src/renderer/src/store/slices/tabs/worktree-layout-lifecycle.ts
6 src/renderer/src/store/slices/terminal-orphan-helpers.ts
4 src/renderer/src/store/slices/terminal-tab-title-batch.ts
6 src/renderer/src/store/slices/terminals.ts
Expand Down
1 change: 1 addition & 0 deletions config/tsconfig.tc.web.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.web.json",
"exclude": [
"../src/renderer/src/lib/agent-session/launch/new-tab/launch-agent-in-new-tab-main-surface.test.ts",
"../src/renderer/src/components/native-chat/NativeChatAcpQuestionCard.test.tsx",
"../src/renderer/src/components/task-page/linear/task-page-linear-detail-query.test.tsx",
"../src/renderer/src/components/terminal-pane/pty-agent-pane-launch.test.ts",
Expand Down
1 change: 1 addition & 0 deletions config/tsconfig.test.pane-launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.web.json",
"include": [
"../src/renderer/src/lib/agent-session/launch/new-tab/launch-agent-in-new-tab-main-surface.test.ts",
"../src/renderer/src/components/native-chat/NativeChatAcpQuestionCard.test.tsx",
"../src/main/runtime/orchestration/terminal-authority/structured-sessions/structured-chat-coordinator-mail.test.ts",
"../src/renderer/src/components/task-page/linear/task-page-linear-detail-query.test.tsx",
Expand Down
1 change: 1 addition & 0 deletions config/tsconfig.web.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"../src/shared/**/*"
],
"exclude": [
"../src/renderer/src/lib/agent-session/launch/new-tab/launch-agent-in-new-tab-main-surface.test.ts",
"../src/renderer/src/components/native-chat/NativeChatAcpQuestionCard.test.tsx",
"../src/renderer/src/components/task-page/linear/task-page-linear-detail-query.test.tsx",
"../src/renderer/src/components/terminal-pane/pty-agent-pane-launch.test.ts",
Expand Down
2 changes: 1 addition & 1 deletion skill-guides/orca-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ ORCA worktree set --worktree active --pr null --gitlab-mr null --json
ORCA worktree rm --worktree id:<repoId>::<worktreePath> --force --json
```

`repo add` defaults to Git. Use `--kind folder` for an ordinary directory or a parent of separate Git repositories; folder workspaces have no Git worktrees or source control. With `--environment`, pass an absolute path on that server.
`repo add` defaults to Git. Use `--kind folder` for an ordinary directory or a parent of separate Git repositories; worktrees attached to a folder workspace appear in its Source Control panel, one section each. With `--environment`, pass an absolute path on that server.

Ports: `ORCA ports --json` lists the listening ports Orca tied to the current workspace (`--worktree <selector>` for another one, `--all` for every listener on that workspace's host). Each row has `port`, `pid`, `processName`, `connectHost`, `protocol`, and `kind` (`workspace`, `container`, or `external`). Only `workspace` rows have `owner` (with `owner.confidence`: `cwd` or `command`) and, when the dev server printed one in an Orca terminal, `advertisedUrl`. Use this to find a dev server's port instead of running `lsof` yourself. If `unavailableReason` is set, the scan could not run on that host. Native folder workspaces need `--all`, because Orca does not tie ports to them. SSH workspaces opened directly from this app report `unavailableReason` for now; a workspace on a managed Orca server is scanned on that server.

Expand Down
2 changes: 1 addition & 1 deletion src/cli/bundled-skill-guides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ const ORCA_CLI_MARKDOWN = [
"ORCA worktree rm --worktree id:<repoId>::<worktreePath> --force --json",
"```",
"",
"`repo add` defaults to Git. Use `--kind folder` for an ordinary directory or a parent of separate Git repositories; folder workspaces have no Git worktrees or source control. With `--environment`, pass an absolute path on that server.",
"`repo add` defaults to Git. Use `--kind folder` for an ordinary directory or a parent of separate Git repositories; worktrees attached to a folder workspace appear in its Source Control panel, one section each. With `--environment`, pass an absolute path on that server.",
"",
"Ports: `ORCA ports --json` lists the listening ports Orca tied to the current workspace (`--worktree <selector>` for another one, `--all` for every listener on that workspace's host). Each row has `port`, `pid`, `processName`, `connectHost`, `protocol`, and `kind` (`workspace`, `container`, or `external`). Only `workspace` rows have `owner` (with `owner.confidence`: `cwd` or `command`) and, when the dev server printed one in an Orca terminal, `advertisedUrl`. Use this to find a dev server's port instead of running `lsof` yourself. If `unavailableReason` is set, the scan could not run on that host. Native folder workspaces need `--all`, because Orca does not tie ports to them. SSH workspaces opened directly from this app report `unavailableReason` for now; a workspace on a managed Orca server is scanned on that server.",
"",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/specs/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const REPO_COMMAND_SPECS: CommandSpec[] = [
usage: 'orca repo add --path <path> [--kind git|folder] [--json]',
allowedFlags: [...GLOBAL_FLAGS, 'path', 'kind'],
notes: [
'Defaults to git. Use --kind folder for an ordinary directory, including a parent of separate Git repositories; folder workspaces have no Git worktrees or source control.',
'Defaults to git. Use --kind folder for an ordinary directory, including a parent of separate Git repositories; worktrees attached to a folder workspace appear in its Source Control panel, one section each.',
'With --environment, --path must be an absolute path on that Orca server.'
],
examples: ['orca repo add --path /abs/path/to/folder --kind folder --json']
Expand Down
10 changes: 7 additions & 3 deletions src/main/agent-launch/trust/agent-workspace-trust-spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { parseWorkspaceKey } from '../../../shared/workspace-scope'
import { splitWorktreeId } from '../../../shared/worktree/id'
import {
shouldPreTrustAgentWorkspace,
resolveAgentWorkspaceTrustOwner,
type AgentWorkspaceTrustDecision
} from '../../../shared/agent-workspace-trust-decision'

Expand Down Expand Up @@ -44,8 +45,10 @@ export function applyAgentWorkspaceTrustToSpawn(
launchAgent: unknown
/** The user chose "let agents ask" for this launch; it wins even if saving that answer failed. */
skipForThisLaunch?: boolean
/** Worktree or folder workspace id; its root is the folder the agent is trusted in. */
/** Placement workspace id; its root may differ from the agent’s starting folder. */
worktreeId: string | undefined
/** Section root to pre-trust for this launch; never part of the terminal identity. */
trustWorktreeId?: string
/** The resolved folder the agent starts in; floating terminals have only this. */
cwd: string | undefined
store:
Expand All @@ -58,12 +61,13 @@ export function applyAgentWorkspaceTrustToSpawn(
spawnOptions: AgentTrustSpawnFields
} & AgentTrustLaunchContext
): Promise<void> | null {
const trustWorkspaceId = resolveAgentWorkspaceTrustOwner(args)
if (
!args.isFreshLaunch ||
args.skipForThisLaunch === true ||
!shouldPreTrustAgentWorkspace(
args.settings?.agentWorkspaceTrustEnabled,
agentWorkspaceTrustDecisionForWorkspace(args.worktreeId, args.store)
agentWorkspaceTrustDecisionForWorkspace(trustWorkspaceId, args.store)
)
) {
return null
Expand All @@ -75,7 +79,7 @@ export function applyAgentWorkspaceTrustToSpawn(
return null
}
const workspaceRoot = resolveTerminalWorkspacePath(
args.worktreeId,
trustWorkspaceId,
(folderWorkspaceId) => args.store?.getFolderWorkspace(folderWorkspaceId)?.folderPath
)
const workspacePath = AGENT_TRUST_KEYED_BY_START_FOLDER[preset]
Expand Down
Loading
Loading