A pinned session's telemetry doesn't name the workspace picked in the IDE
Description
When an IDE extension starts altimate-code serve with a workspace pin (ALTIMATE_PINNED_WORKSPACE_ID, _NAME, _ROOT), the pin decides the session's identity, skills, memory and tool routing. The telemetry rows of a turn don't follow it. They read only the project's on-disk link, and the pin is deliberately never written there.
So a pinned session in a project with no link sends no workspace_id. In a project linked to a different workspace, it sends that other workspace's id.
The affected rows are the ones that name the turn's workspace, such as session_start, session_end, tool_call, skill_used, memory_injection and task_outcome_signal. The per-session workspace counts stay at zero too, because they only count in a turn that has a workspace.
Steps to reproduce
- Link a project to workspace A.
- Start
altimate-code servefor that project with the pin variables naming workspace B, which the account can see. - Send a prompt.
- The turn's rows carry A's id, not B's. With no link in step 1, they carry no id.
Expected
A turn's rows name the workspace the session works against: the pin when there is one, otherwise the project's link. A pin that can't be honoured names no workspace, the same way routing refuses it, and never falls back to the project's link.
OpenCode version
0.12.9
Operating System
Any