Persist chat mode per chat (#3249)
## Summary
- Adds chat mode persistence to chats so Ask, Build, and Plan are
remembered per conversation.
- Resolves effective chat mode for chat creation and streaming paths,
including fallback metadata for the UI.
- Updates chat mode hooks, selectors, tab flows, and coverage for
persistence behavior.
## Test plan
- npm run fmt && npm run lint:fix && npm run ts
- npm test
- npm run build
- PLAYWRIGHT_HTML_OPEN=never npm run e2e -- e2e-tests/chat_mode.spec.ts
Generated with Codex
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/3249"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open in Devin Review">
</picture>
</a>
<!-- devin-review-badge-end -->
---------
Co-authored-by:
Will Chen <7344640+wwwillchen@users.noreply.github.com>
正在显示
drizzle/0028_icy_veda.sql
0 → 100644
drizzle/meta/0028_snapshot.json
0 → 100644
src/__tests__/chatMode.test.ts
0 → 100644
src/hooks/useChatMode.ts
0 → 100644
src/hooks/useInitialChatMode.ts
0 → 100644
src/lib/chatMode.ts
0 → 100644
src/lib/chatModeStream.ts
0 → 100644
src/lib/chatModeToast.ts
0 → 100644
请
注册
或者
登录
后发表评论