Skip to content

Commit 1539751

Browse files
anandgupta42claude
andcommitted
fix(workspace): clear the adopted flag when Attach approves a cached binding
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent a1342e7 commit 1539751

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
@@ -1270,7 +1270,9 @@ async function runFlow(api: TuiPluginApi, directory: string): Promise<void> {
12701270
// unlinked or rebound while the pre-check could not reach the service.
12711271
onAttach={async () => {
12721272
const live = await WorkspaceApi.getBindingForProject(identifier).catch(() => undefined)
1273-
if (live?.datamate.id === local.datamateId) await recordApprovedBinding(directory, local)
1273+
// Attach is the user's approval: the row is no longer merely adopted from the server.
1274+
if (live?.datamate.id === local.datamateId)
1275+
await recordApprovedBinding(directory, { ...local, adopted: false })
12741276
}}
12751277
/>
12761278
))

0 commit comments

Comments
 (0)