Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
bfa86b0
fix: enforce and persist workspace-scoped auto-approve command lists …
DaubnerF Oct 14, 2026
420cbe8
fix: compensate failed command-list saves and scope config access per…
DaubnerF Oct 14, 2026
95ed76a
fix: derive command-list save scope from a single settings read (#1939)
DaubnerF Oct 14, 2026
7c294cc
fix: restore default command allowlist on fresh installs (#1939)
DaubnerF Oct 14, 2026
0cf1628
test: pin command-list seed and settings-lookup edge cases (#1939)
DaubnerF Oct 15, 2026
474dfd6
fix: gate workspace command lists and give user-level entries precede…
DaubnerF Nov 1, 2026
dfff69d
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Nov 2, 2026
10e9456
fix: harden command-list save path and resolve lists per task folder …
DaubnerF Nov 5, 2026
8fa13af
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Nov 5, 2026
97e5ab1
fix: stop false settings-changed warning for hidden command entries
DaubnerF Nov 5, 2026
9736c1d
fix: promote re-added hidden command entries to the global write
DaubnerF Nov 6, 2026
3c4896c
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Nov 6, 2026
8d99f54
fix: judge command approvals by the directory the command runs in
DaubnerF Nov 9, 2026
5a43ade
fix: cwd resolution now physical: symlink-safe folder-scoped approval
DaubnerF Nov 10, 2026
4d8f2fd
fix: match folder command policy by deepest real path
DaubnerF Nov 10, 2026
9e7633e
fix: reconcile failed-save retry baselines and dispose auth listener
DaubnerF Nov 10, 2026
19abefb
fix: keep unsaved edits, shut down telemetry, pin deny precedence
DaubnerF Nov 10, 2026
a243fee
fix(auto-approve): honor user-level command precedence and root paths
DaubnerF Nov 10, 2026
54f0a6a
fix(extension): tear down debug proxy resources on failed activation
DaubnerF Nov 11, 2026
e3d29a6
fix(extension): complete failed-activation teardown of channel and sink
DaubnerF Nov 11, 2026
f6b320b
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Nov 12, 2026
2246440
fix: order command-list writes, undo only this save, close proxy agents
DaubnerF Nov 12, 2026
81d2622
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Nov 13, 2026
4df9ebf
fix: derive command-list rollback from config, restore proxy dispatcher
DaubnerF Nov 13, 2026
100a7b1
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Nov 14, 2026
2f0b953
fix: honor external command-list edits in saves and dialog state
DaubnerF Nov 14, 2026
4999a53
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Nov 15, 2026
a668f4c
fix: preserve settings-file-only command entries during saves
DaubnerF Nov 15, 2026
d5cf953
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Nov 16, 2026
f3308d9
fix: restore absent global command lists after a rolled-back save
DaubnerF Nov 16, 2026
5ee3d80
fix: keep settings-file command entries during layered saves
DaubnerF Nov 16, 2026
676e583
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Nov 16, 2026
632cc3a
fix: report save failure when the stored command list is rejected
DaubnerF Nov 16, 2026
7a6ce97
fix: stop dialog saves from deleting command-list entries
DaubnerF Nov 16, 2026
9a60347
refactor: move proxy and auth teardown to a follow-up PR
DaubnerF Nov 16, 2026
5f549d6
test: pin round-trip scope persistence of seeded command lists
DaubnerF Nov 17, 2026
75d5c2a
fix: wait for the host's answer before releasing buffered command-lis…
DaubnerF Nov 17, 2026
d3d0411
test: cover combined command-list write and refresh failure on save
DaubnerF Nov 17, 2026
034c0ea
fix: keep imported command lists after a settings save
DaubnerF Nov 19, 2026
76640ba
docs: rewrite the added comments in ASD-STE100
DaubnerF Nov 23, 2026
2770093
docs: restore a dropped comment fact and correct the prior message
DaubnerF Nov 24, 2026
3e494af
Merge upstream/main into fix/1939-scoped-command-lists
DaubnerF Nov 24, 2026
749d28f
Update the cwd comment to name the async path step
DaubnerF Nov 24, 2026
1167e12
fix: keep auto-imported command lists through a later save
DaubnerF Nov 24, 2026
9a45da7
refactor: move command-list baseline and rollback into helpers
DaubnerF Nov 25, 2026
6a6946d
fix: tighten command-list scope, save merging, and failure handling
DaubnerF Nov 25, 2026
b02d054
fix: match the Hindi description's own word for "setting"
DaubnerF Nov 25, 2026
c694774
test: create the command-scope fixtures on disk
DaubnerF Nov 26, 2026
0492bc8
fix: one workspace-layer selector, honest save reporting for command …
DaubnerF Nov 26, 2026
51f2e0e
fix: keep command-list saves, imports, and folder scopes consistent
DaubnerF Nov 27, 2026
34cd010
fix: correct two command-list comments
DaubnerF Nov 27, 2026
2a54498
test: add getValue to the auto-import proxy double
DaubnerF Nov 27, 2026
1e74194
Delete only the command-list entries the dialog showed and the user o…
DaubnerF Nov 30, 2026
4eaf350
fix: distinguish display state from store state on the save path
DaubnerF Nov 30, 2026
05c3053
fix: bound a broken folder root and pair a restored baseline with its…
DaubnerF Dec 1, 2026
0c7ee1b
fix: judge each command-list layer by its own evidence on the save an…
DaubnerF Dec 1, 2026
a97f63d
Merge remote-tracking branch 'upstream/main' into fix/1939-scoped-com…
DaubnerF Dec 2, 2026
22a9a19
fix: read the live command lists when deciding command approval
DaubnerF Dec 2, 2026
abc0f4d
fix: post the raw command layers and normalize an import once
DaubnerF Dec 2, 2026
1d12fc0
test: release held gates in finally so a failed assertion cannot hang…
DaubnerF Dec 2, 2026
6e468c7
fix: treat a deleted user allow list as empty, not as the startup def…
DaubnerF Dec 3, 2026
3919093
fix: release activation resources when the settings seed fails, and r…
DaubnerF Dec 3, 2026
2d95e19
Correct three comments that named `deactivate()` as the disposer
DaubnerF Dec 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/types/src/global-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ export const DEFAULT_DESTRUCTIVE_COMMAND_GUARD_ENABLED = false
/** Whether new root tasks get a short generated title in the background. */
export const DEFAULT_TASK_TITLE_GENERATION_ENABLED = true

/**
* Opt-in gate for workspace-scoped command lists. While off, those lists are
* inert. The manifest scope is "application", so only user settings change
* it. Every consumer shares this default.
*/
export const DEFAULT_WORKSPACE_COMMAND_LISTS_ENABLED = false

/**
* Whether commands that are not explicitly auto-approved are automatically
* denied (with a structured reason sent to the model) instead of prompting the
Expand Down Expand Up @@ -183,6 +190,12 @@ export const globalSettingsSchema = z.object({
followupAutoApproveTimeoutMs: z.number().optional(),
allowedCommands: z.array(z.string()).optional(),
deniedCommands: z.array(z.string()).optional(),
/**
* Gate for the workspace command lists. While false, they are inert. When
* true, they apply only where no global entry matches a command.
* @default false
*/
workspaceCommandListsEnabled: z.boolean().optional(),
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
commandExecutionTimeout: z.number().optional(),
commandTimeoutAllowlist: z.array(z.string()).optional(),
preventCompletionWithOpenTodos: z.boolean().optional(),
Expand Down
50 changes: 47 additions & 3 deletions packages/types/src/vscode-extension-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export type ExtensionState = Pick<
| "followupAutoApproveTimeoutMs"
| "allowedCommands"
| "deniedCommands"
| "workspaceCommandListsEnabled"
| "allowedMaxRequests"
| "allowedMaxCost"
| "ttsEnabled"
Expand Down Expand Up @@ -421,6 +422,15 @@ export type ExtensionState = Pick<
toolRequirements?: Record<string, boolean> // Map of tool names to their requirements (e.g. {"apply_diff": true})

cwd?: string // Current working directory

/**
* User-scope command lists from extension global state, before the workspace
* layers compose. Auto-approval enforces these raw layers plus the task's
* folder. The merged pair follows only the window's first folder. This is
* runtime state, not a user setting: the provider writes it, never the dialog.
*/
globalAllowedCommands?: string[]
globalDeniedCommands?: string[]
telemetrySetting: TelemetrySetting
telemetryKey?: string
// Salted SHA-256 hash of vscode.env.machineId (see hashDistinctId in
Expand Down Expand Up @@ -713,9 +723,7 @@ export interface WebviewMessage {
| "getDismissedUpsells"
| "openMarkdownPreview"
| "updateSettings"
| "allowedCommands"
| "getTaskWithAggregatedCosts"
| "deniedCommands"
| "openDebugApiHistory"
| "openDebugUiHistory"
| "downloadErrorDiagnostics"
Expand Down Expand Up @@ -773,7 +781,6 @@ export interface WebviewMessage {
stepIndex?: number
isLaunchAction?: boolean
forceShow?: boolean
commands?: string[]
audioType?: AudioType
serverName?: string
toolName?: string
Expand Down Expand Up @@ -862,6 +869,43 @@ export interface WebviewMessage {
codebaseIndexOpenRouterApiKey?: string
}
updatedSettings?: RooCodeSettings
/**
* The lists as the dialog last showed them, sent with the save that rewrites
* them. A save deletes an entry from a layer only when this baseline showed
* that entry for that layer and the submission omits it. A sender that omits
* it gets the compatibility rule: every entry the layers hold counts as
* displayed, so an omission is a deletion. The settings dialog always sends
* one.
*/
commandListBaseline?: {
allowedCommands?: string[]
deniedCommands?: string[]
/**
* The gate as the dialog last showed it. With the gate off at display the
* workspace layer was not on screen, so no workspace entry counts as
* displayed and none is deleted by omission.
*/
workspaceCommandListsEnabled?: boolean
/**
* The workspace-layer entries the dialog showed, per key: the displayed list
* minus the global layer the host posted at the same moment. The flat
* `allowedCommands`/`deniedCommands` above are the merged pair, so a global
* entry appears there too and cannot say which layer showed it. Absent means
* the sender cannot say, and the save then carries every workspace entry
* rather than deleting one it has no evidence about.
*/
workspaceAllowedCommands?: string[]
workspaceDeniedCommands?: string[]
/**
* The global-layer entries the dialog showed, per key: the global counterpart
* of the workspace pair above. Without them the save reads the merged list as
* the global layer too, so a global entry another writer added after the
* dialog opened counts as displayed and its omission deletes it. Absent means
* the sender cannot say, and the save falls back to the merged list.
*/
globalAllowedCommands?: string[]
globalDeniedCommands?: string[]
}
/** Task configuration applied via `createTask()`. */
taskConfiguration?: RooCodeSettings
/** Origin of each part of `text`. Absent or not matching `text` means all generated. */
Expand Down
Loading
Loading