Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
253a7b0
chore(webview): rebase the view identity unit onto main 6df256602d
easonLiangWorldedtech Nov 30, 2026
c2927ed
[cr 4746968738] read the view settings overlay together with its pin
easonLiangWorldedtech Nov 30, 2026
e5dd630
[cr 4746968747] take the payload task settings before mode registration
easonLiangWorldedtech Nov 30, 2026
15e1dac
[cr 4746968724] reconfigure tasks on the deleted profile whatever pin
easonLiangWorldedtech Dec 1, 2026
df508e2
[cr 4746968732] rename tasks that follow the profile whatever pin
easonLiangWorldedtech Dec 1, 2026
646c1c5
[cr 4746968656] restore the map captured before a failed write
easonLiangWorldedtech Dec 1, 2026
73e0e8d
store the record of the writer that succeeded across view races
easonLiangWorldedtech Dec 1, 2026
da4db05
restore the task settings and sticky name an activating save moved
easonLiangWorldedtech Dec 1, 2026
0e6b35c
restore the deleting view pin and overlay after a failed deletion
easonLiangWorldedtech Dec 1, 2026
ab8b96b
run the profile model patch inside the stored record section
easonLiangWorldedtech Dec 1, 2026
6c1051d
release the profile queue gate when a scope row assertion fails
easonLiangWorldedtech Dec 1, 2026
b8a8b0a
run the profile mutation race against the real settings manager
easonLiangWorldedtech Dec 1, 2026
953ff7c
test the profile selection read through the real manager
easonLiangWorldedtech Dec 1, 2026
79970ff
write the launch repair pin and its settings as one mutation
easonLiangWorldedtech Dec 1, 2026
e427154
queue the rename's shared-selection repair behind activation
easonLiangWorldedtech Dec 1, 2026
d2d0795
pin the queued repair against overtaking its mutation
easonLiangWorldedtech Dec 1, 2026
926920f
compensate the activation mode mapping with its writes
easonLiangWorldedtech Dec 1, 2026
db9b7fa
bound the profile repair by its execution, not by its queue wait
easonLiangWorldedtech Dec 1, 2026
01ea0ff
restore the tombstone a rejected view-state write made
easonLiangWorldedtech Dec 1, 2026
d26b39f
state the repair bound as a caller deadline and pin its edge
easonLiangWorldedtech Dec 1, 2026
633bc03
show the rename error before awaiting its queued repair
easonLiangWorldedtech Dec 1, 2026
d6edcc7
webview: record view-state evictions only after the write lands
easonLiangWorldedtech Dec 1, 2026
007ba09
task: build the api handler before the new settings take effect
easonLiangWorldedtech Dec 1, 2026
775eb41
webview: restore evicted view entries with their last value
easonLiangWorldedtech Dec 1, 2026
360f534
webview: assert view-state evictions against the write, not the result
easonLiangWorldedtech Dec 1, 2026
2e8db66
test(webview): harden the four new view-state eviction rows
easonLiangWorldedtech Dec 1, 2026
0bba219
webview: pay the store only for writes it actually received
easonLiangWorldedtech Dec 1, 2026
5b02fd9
webview: give each activation group its own eviction record
easonLiangWorldedtech Dec 1, 2026
c5b735f
style(webview): reflow the provider spec to the repository prettier c…
easonLiangWorldedtech Dec 2, 2026
9ff9ccc
webview: re-point the retained task when launching repairs the pin
easonLiangWorldedtech Dec 2, 2026
297e161
webview: re-read the replacement profile once before giving up the seed
easonLiangWorldedtech Dec 2, 2026
6001e8d
[cr 4506513941] carry the activated settings into the activating view
easonLiangWorldedtech Dec 2, 2026
9823952
[cr 4593787862] clear profiles renamed after sign-out took its scan
easonLiangWorldedtech Dec 2, 2026
c2892ca
[cr 4774950127] follow an explicit API provider change in the serving…
easonLiangWorldedtech Dec 2, 2026
1d1b4ab
[cr 4506513941] cover the config a task created after an activation r…
easonLiangWorldedtech Dec 3, 2026
0b4f8db
[cr 4506517282] keep a newer shared write from an older view's rollback
easonLiangWorldedtech Dec 3, 2026
0c41a13
fix(core): publish a re-read profile list under the shared lock [cr 4…
easonLiangWorldedtech Dec 3, 2026
c57ec78
fix(core): keep newer mode writes across a failed registration [cr 45…
easonLiangWorldedtech Dec 3, 2026
015b0a0
fix(core): release eviction record when an activation succeeds [cr 47…
easonLiangWorldedtech Dec 3, 2026
9351140
fix(core): fail a rename when its task-history write fails [cr 474781…
easonLiangWorldedtech Dec 3, 2026
8388ce1
fix(core): retry the launch profile repair when a rebuild fails [cr 4…
easonLiangWorldedtech Dec 3, 2026
2b10b8f
fix(extension): fail profile activation before the selection persists
easonLiangWorldedtech Dec 3, 2026
22c3ebd
fix(webview): absorb the seed re-check failure inside the launch attempt
easonLiangWorldedtech Dec 3, 2026
4256a47
fix(sign-out): hand the cleaned record to sibling views after write
easonLiangWorldedtech Dec 3, 2026
8dbb370
fix(webview): keep a task profile name when the survivor cannot load
easonLiangWorldedtech Dec 3, 2026
87300aa
Record and log a refused or viewless webview post in diagnostics
easonLiangWorldedtech Dec 3, 2026
0c17fd5
Roll back history mode and task mode from separate snapshots
easonLiangWorldedtech Dec 3, 2026
e4ce384
Deregister the provider from a finally that covers the whole cleanup
easonLiangWorldedtech Dec 3, 2026
456cd3f
Make the stale-registration row reach the profile lookup and discard
easonLiangWorldedtech Dec 3, 2026
eed97cb
Assert the sanitized settings in the unknown-provider getState row
easonLiangWorldedtech Dec 3, 2026
63dffae
Hold the write queue in the queued-viewStateId capture row
easonLiangWorldedtech Dec 3, 2026
46b9fba
fix(config): keep profile secrets that a save never mentions
easonLiangWorldedtech Dec 3, 2026
c963ebf
fix(config): filter rescued profile secrets by the incoming provider
easonLiangWorldedtech Dec 3, 2026
67de9b7
fix(webview): persist the profile pin an activation just made
easonLiangWorldedtech 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
29 changes: 29 additions & 0 deletions packages/types/src/__tests__/global-settings.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/types/src/__tests__/index.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/types/src/global-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ export const MAX_CHECKPOINT_TIMEOUT_SECONDS = 60
*/
export const DEFAULT_CHECKPOINT_TIMEOUT_SECONDS = 15

/**
* Persisted non-secret selections for a stable webview instance.
*/
export const viewStateSchema = z.object({
mode: z.string().optional(),
currentApiConfigName: z.string().optional(),
updatedAt: z.number().optional(),
/** Host-minted token binding this entry to the webview that wrote it. */
claimToken: z.string().optional(),
})

/**
* GlobalSettings
*/
Expand All @@ -125,6 +136,7 @@ export const globalSettingsSchema = z.object({
currentApiConfigName: z.string().optional(),
listApiConfigMeta: z.array(providerSettingsEntrySchema).optional(),
pinnedApiConfigs: z.record(z.string(), z.boolean()).optional(),
viewStates: z.record(z.string(), viewStateSchema).optional(),

lastShownAnnouncementId: z.string().optional(),
customInstructions: z.string().optional(),
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/vscode-extension-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ export interface WebviewMessage {
| "themeFixtureProbeResponse"
| "diagnosticsResponse"
text?: string
viewStateId?: string
taskId?: string
editedMessageContent?: string
tab?: "settings" | "history" | "mcp" | "modes" | "chat" | "marketplace" | "cloud"
Expand Down
8 changes: 8 additions & 0 deletions packages/types/src/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ export const commandIds = [
"popoutButtonClicked",
"settingsButtonClicked",

// Editor-tab (popped-out) surface variants of the title-bar buttons. The
// shared ids above target the sidebar click origin, so the tab surface
// needs its own ids (see registerCommands.ts getTabProvider).
"plusButtonClickedInTab",
"settingsButtonClickedInTab",
"marketplaceButtonClickedInTab",
"historyButtonClickedInTab",

"openInNewTab",

"newTask",
Expand Down
Loading
Loading