A workspace's first prompt and first finished job aren't sent outside onboarding
Description
first_prompt_sent and first_job_completed are only sent from an onboarding session. first_job_completed also needs the finished job to be the one picked from the onboarding menu.
Someone who links a project to a workspace and starts working isn't in that flow, so neither row is sent. Telemetry can't show when a workspace first got a prompt or first finished a job.
Steps to reproduce
- Link a project to a workspace.
- Start a session in that project and send a prompt.
- Let a job finish.
- No
first_prompt_sentorfirst_job_completedrow is sent.
Expected
Each event is sent once per workspace per machine, with workspace_id: first_prompt_sent on the first prompt, and first_job_completed on the first completed job, of any session bound to that workspace. What has been sent is remembered in the CLI's own state, outside the project, so a later session doesn't send it again.
Onboarding sessions keep sending these events as they do today.
OpenCode version
0.12.9
Operating System
Any