Skip to content

Commit ab01381

Browse files
anandgupta42claude
andcommitted
fix(workspace): keep a failed pin check unresolved for Open in browser
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent c0143bd commit ab01381

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
@@ -1899,7 +1899,9 @@ async function runWorkspaceManage(api: TuiPluginApi, directory: string): Promise
18991899
// Resolved before render, like AlreadyLinkedDialog's: an option appearing after
19001900
// paint would shift the row under the user's cursor.
19011901
// Under an IDE pin, skills, memory and routing follow the pinned workspace, so Open must too.
1902-
const pinned = await resolvePinnedBindingForRouting(directory).catch(() => null)
1902+
// It only returns early (null) when there is no pin, so a throw means a pin exists but could
1903+
// not be checked: keep it unresolved rather than falling through to the project's link.
1904+
const pinned = await resolvePinnedBindingForRouting(directory).catch(() => ({ status: "unknown" as const }))
19031905
// A pin that cannot be honoured fails closed everywhere else; Open must not fall through to
19041906
// the project's own link either.
19051907
const openId = pinned

0 commit comments

Comments
 (0)