Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

This is a low-risk maintainability pass on the workspace metadata event tests + related selection handling.

What changed

  • Tests: added a small helper to create a single workspace.onMetadata event stream, removing repeated async-generator boilerplate.
  • Prod: reuse toWorkspaceSelection(...) when selecting parent/fallback workspaces after deletion.

Why

  • Keeps the “metadata stream drives state changes” tests focused on intent, not wiring.
  • Reduces duplicate selection-shape construction.

Validation

  • bun test src/browser/contexts/WorkspaceContext.test.tsx
  • make static-check

Generated with mux • Model: openai:gpt-5.2 • Thinking: xhigh

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