Title: fix(copilot): persist workflow drafts across navigation by BillLeoutsakosvl346 · Pull Request #6807 · simstudioai/sim · GitHub
Open Graph Title: fix(copilot): persist workflow drafts across navigation by BillLeoutsakosvl346 · Pull Request #6807 · simstudioai/sim
X Title: fix(copilot): persist workflow drafts across navigation by BillLeoutsakosvl346 · Pull Request #6807 · simstudioai/sim
Description: Summary Persist unsent workflow Copilot text, completed attachments, and context chips across navigation and refresh. Reuse the existing localStorage-backed Mothership draft store with one namespaced bucket per workspace and workflow. Use the route workflow on initial hydration, then follow the active operational workflow so the draft, transcript, and send target change together. Key only the composer when the workflow scope changes; transcript and scroll state remain untouched. Keep the scope stable while a new Copilot chat receives its server ID so queued follow-up text cannot be lost. Leave Copilot rendering, cross-surface handoffs, APIs, schemas, backend logic, and the draft store unchanged. Type of Change Bug fix New feature Breaking change Documentation Other Testing bunx biome check on both changed files bun run check:audits — 29/29 audits passed bun run lint:check — 24/24 tasks passed bun run type-check — 24/24 tasks passed bun run test — 17/17 tasks passed; app suite 27,406 passed, 46 skipped bunx turbo run build --filter=@sim/app — passed git diff --check — passed After review changes: scoped Biome, @sim/app type-check, and diff check passed Interactive localhost QA was not available in the agent browser session. Reviewer focus: type an unsent workflow Copilot draft, navigate away and return or refresh, confirm it restores; switch workflows and confirm isolation; send and confirm the draft clears. No new automated test was added because this adopts an existing persistence path, while a mocked Panel test would only assert prop wiring rather than route-navigation behavior. Checklist Code follows project style guidelines Self-reviewed my changes Existing tests are passing; no wiring-only test added No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement Screenshots/Videos Not attached because an interactive localhost browser session was unavailable.
Open Graph Description: Summary Persist unsent workflow Copilot text, completed attachments, and context chips across navigation and refresh. Reuse the existing localStorage-backed Mothership draft store with one namespa...
X Description: Summary Persist unsent workflow Copilot text, completed attachments, and context chips across navigation and refresh. Reuse the existing localStorage-backed Mothership draft store with one namespa...
Opengraph URL: https://github.com/simstudioai/sim/pull/6807
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:43dcecfe-0d45-719f-530e-8a48215d13db |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B7C4:109F65:9A204:DF235:6AFB2927 |
| html-safe-nonce | 1956e87a054e07a96c6189e9fd9de9cfb005760f943e98489b379de6b92203f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0M0OjEwOUY2NTo5QTIwNDpERjIzNTo2QUZCMjkyNyIsInZpc2l0b3JfaWQiOiI3NTc4NTczMjc0MjMzOTA3NDk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cd13ed4da4c639bfe38a869370c1725d2ee57797fa5896e36d52c9dbb972e4ae |
| hovercard-subject-tag | pull_request:4301047219 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6807/files |
| twitter:image | https://avatars.githubusercontent.com/u/157128530?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/157128530?s=400&v=4 |
| og:image:alt | Summary Persist unsent workflow Copilot text, completed attachments, and context chips across navigation and refresh. Reuse the existing localStorage-backed Mothership draft store with one namespa... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 40c7ffe00e8bbb3ca8403c83d7ef110379c9eba2cbc7a7c333b037ffd940d4e4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f494d77c37809e03e18d49c6e9945c57e0b64070 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width