Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Status URLs now use the standard storage.ts key pattern and are properly migrated on workspace rename.

Changes

  • Add getStatusUrlKey to storage.ts with standard format (statusUrl:{workspaceId})
  • Register in PERSISTENT_WORKSPACE_KEY_FUNCTIONS for fork/delete
  • Add migrateWorkspaceStorage for rename support (fixes pre-existing bug where all workspace storage was lost on rename)
  • Update StreamingMessageAggregator to use centralized key function

Why

Previously, status URLs used a non-standard key format (mux:workspace:...) that wasn't registered in storage.ts, so:

  1. Keys weren't copied on fork
  2. Keys weren't deleted on workspace removal
  3. Keys weren't migrated on rename (pre-existing bug affecting all workspace storage)

Generated with mux

- Add getStatusUrlKey to storage.ts with standard format
- Register in PERSISTENT_WORKSPACE_KEY_FUNCTIONS for fork/delete
- Add migrateWorkspaceStorage for rename support (fixes pre-existing bug)
- Update StreamingMessageAggregator to use centralized key function

Previously, status URLs used a non-standard key format and weren't
migrated on workspace rename. Now all workspace storage keys are
properly migrated when a workspace is renamed.

_Generated with `mux`_
@ammario ammario merged commit aec17d2 into main Dec 2, 2025
13 checks passed
@ammario ammario deleted the fix-status-url-persistence branch December 2, 2025 03:30
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.

2 participants