Repository navigation
fix: preserve composer settings on thread creation - #503
Conversation
|
@coderabbitai review |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughServer consolidates thread composer settings (reasoning level, interaction modes, context window, thinking, provider-specific flags) into a single updateSettings call and returns normalized thread objects. Client extends placeholder building to accept metadata parameters, passes them through placeholder creation, and hydrates server-resolved threads by merging responses with pending creation parameters. Tests verify the expanded API contract across placeholder and post-resolution phases. ChangesThread Composition Settings and Optimistic Hydration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
✅ Actions performedReview triggered.
|
What
Fix composer model and reasoning settings resetting during new-thread and branch-thread creation.
Why
The app returned or rendered a stale thread row while the first send was still persisting composer settings. That let the composer briefly hydrate from defaults or the parent thread, which changed the selected model, provider, reasoning level, and related configuration before the run started.
Key Changes
Verification:
bun run typecheckpassed: 5 successful, 5 total.cd apps/web && bun run test -- src/__tests__/workspace-behavior.test.tspassed: 1 file, 19 tests.cd apps/server && bun run test -- src/services/__tests__/agent-service-gate.test.tspassed: 1 file, 1 test.git diff --checkpassed.Note:
bun run teststill has unrelated Windows-sensitive server failures inorphan-cleanup,skill-watcher-service, andsnapshot-service.integration.Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit
Release Notes