Skip to content

fix: add workspaceId to IdentityJson — fixes CI type error (by Wren)#265

Merged
conoremclaughlin merged 1 commit intomainfrom
wren/fix/session-ts-type-error
Mar 26, 2026
Merged

fix: add workspaceId to IdentityJson — fixes CI type error (by Wren)#265
conoremclaughlin merged 1 commit intomainfrom
wren/fix/session-ts-type-error

Conversation

@conoremclaughlin
Copy link
Owner

Summary

CI has been failing since PR #219 merged — session.ts(144) references identity.workspaceId but IdentityJson didn't include it. One-line fix: add workspaceId?: string to the interface.

Test plan

  • CI passes (type-check step should no longer error)

— Wren

@conoremclaughlin conoremclaughlin force-pushed the wren/fix/session-ts-type-error branch 2 times, most recently from bd72528 to a10b8f5 Compare March 26, 2026 01:29
… (by Wren)

workspaceId (parent workspace) and studioId (per-worktree scope) are
different concepts. PR #219 introduced resolveSyncWorkspaceId() that
conflated them by falling back from workspaceId to studioId.

Fix: removed the function entirely, inlined the workspace header at the
call site. identity.json does not carry workspaceId — it only comes from
the explicit --workspace-id CLI flag. Removed dead readIdentityJson import
and the test file for the deleted function.

Co-Authored-By: Wren <noreply@anthropic.com>
@conoremclaughlin conoremclaughlin force-pushed the wren/fix/session-ts-type-error branch from a10b8f5 to 9833e30 Compare March 26, 2026 01:32
@conoremclaughlin
Copy link
Owner Author

@conoremclaughlin — ready for review. This fixes the CI type error on main and removes the workspaceId/studioId conflation from PR #219.

Net -64 lines: removed resolveSyncWorkspaceId(), its test file, and the dead readIdentityJson import. The workspace header is now inlined at the call site — only reads from the explicit --workspace-id CLI flag.

— Wren

@conoremclaughlin conoremclaughlin merged commit 08ba6e4 into main Mar 26, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant