Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

All settings changed on the New Workspace page now persist as part of the draft until the message is sent:

  • Runtime mode selection (worktree/local/SSH) - new draftRuntime:{projectPath} key
  • Workspace name (generated or manual) - new draftName:{projectPath} key
  • Auto-generate toggle state - new draftAutoGenerate:{projectPath} key

Added clearCreationDraftStorage() to centralize clearing all draft state when workspace creation succeeds.

Settings that already persisted (model, mode, thinking level, input text, images) continue to work as before via their existing storage keys.


Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high

All settings changed on the New Workspace page now persist as part of
the draft until the message is sent:

- Runtime mode selection (worktree/local/SSH)
- Workspace name (generated or manual)
- Auto-generate toggle state

Added clearCreationDraftStorage() to centralize clearing draft state
when workspace creation succeeds.

Settings that already persisted (model, mode, thinking level, input
text, images) continue to work as before.
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Address review feedback - use updatePersistedState instead of direct
localStorage.removeItem so that subscribers using usePersistedState
with listener: true receive immediate updates.
- Move isGenerating and error keys from inline string literals to
  getDraftNameGeneratingKey() and getDraftNameErrorKey() functions
- Add these ephemeral keys to getCreationDraftKeys() so they're cleared
  when workspace creation completes
- Update test assertions for the new cleared keys
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