Skip to content

Commit dd92f91

Browse files
anandgupta42claude
andcommitted
fix(workspace): pin the account when warming a discovered binding
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 1349da2 commit dd92f91

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/opencode/src/plugin/tui/altimate/workspace.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,9 @@ async function runFlow(api: TuiPluginApi, directory: string): Promise<void> {
12061206
// Warm the local cache so an offline follow-up render is consistent.
12071207
// altimate_change start — no memory seed until the user picks Attach: this link may be a
12081208
// teammate's, and opening the TUI must not upload this machine's memory to it.
1209-
await recordApprovedBinding(directory, discovered, { seed: false })
1209+
// Pinned to the account the pre-check ran as: a switch mid-lookup must not write this
1210+
// binding (or start its skill sync) under the other account.
1211+
await recordApprovedBinding(directory, discovered, { seed: false, account: flowAccount ?? undefined })
12101212
// altimate_change end
12111213
// Drift = the identifier the server matched on doesn't equal the
12121214
// corresponding identifier this project currently has. E.g. we matched

0 commit comments

Comments
 (0)