You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[API] setConfiguration/getConfiguration not synced through provider state, task controls unwired (vps2 F5; upstream #982) #1556
Title: [API] setConfiguration/getConfiguration not synced through provider state, task controls unwired (vps2 F5; upstream #982)
Body:
Gap
At the base of record (upstream/main @ 0d937c0) plus the shipped F1-series and F2 heads, the extension API (src/extension/api.ts) is out of sync with the durable per-view state machinery:
setConfiguration writes through contextProxy.setValues directly with no sidebar/extension-host view-targeting contract (view-local vs global routing is undefined); getConfiguration has no flatten / secret-strip.
startNewTask has no preserveOpenTabs passthrough (the new-tab editor cleanup always runs).
The API has no task registry: approveTaskAsk / denyAsk resolve against nothing, and no TaskCreated/TaskCompleted/TaskAborted lifecycle tracking.
selectTaskFollowupSuggestion is absent (a follow-up suggestion cannot be applied to a task, including the mode-switch-failure path that must still deliver the answer).
Fix scope (5 files, a+d 557 measured vs the F2 head)
packages/types/src/api.ts — the two documented doc fixes: the preserveOpenTabs @PARAM JSDoc on startNewTask; the stale setConfiguration JSDoc rewrite (writes target the extension-host (sidebar) view: view-local values pinned to the sidebar's per-view state, global values to the shared ContextProxy). Comment/type-level only.
src/extension/api.ts — the wiring port (byte-identical to the vps2 CS blob): setConfiguration/getConfiguration through provider state, task registry, approveTaskAsk/denyAsk, selectTaskFollowupSuggestion (mode-switch failure still delivers the answer, logged to the output channel), preserveOpenTabs passthrough, getGlobalState.
Parked limitation (documented in the PR, not fixed)
Sidebar-only API targeting (#41 parked item 10, A4 major): the extension API always targets the sidebar/extension-host provider; a per-view API handle is the architectural fix and is out of scope for this series.
Activity