feat(ai): rename conversations + reasoning block - #101
Merged
Conversation
Completes the remaining AI-assistant polish items. Rename: - lib/ai-conversations.renameConversation already existed; store gains a renameConversation action (optimistic list update + PATCH) exposed via useAIChat. The drawer gets a pencil affordance per conversation that opens a rename dialog (Dialog + TextInput + Save/Cancel). Reasoning (build-ready): - parseAiSdkStream now accumulates `reasoning-delta` events into a `reasoning` field (streamed via onUpdate alongside text/tools); the store message carries `reasoning`. - components/ui/Reasoning.tsx — collapsible "thinking" block (AI Elements- style), rendered above the answer when present. The current ObjectStack agent emits no reasoning, so it stays invisible until a reasoning-capable model is wired server-side — no behavior change today. +8 tests (reasoning parsing, Reasoning component, rename dialog + store rename optimistic/blank-guard, reasoning render). Suite 1266/1266, lint clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The last two AI-assistant polish items.
Rename conversations
renameConversationaction (optimistic list update →PATCH /conversations/:id), exposed viauseAIChat.renameConversation()was already in the API client.Reasoning block (build-ready)
parseAiSdkStreamaccumulatesreasoning-deltaevents into areasoningfield (streamed viaonUpdatewith text/tools); store message carriesreasoning.components/ui/Reasoning.tsx— collapsible "thinking" block (React Native take on AI Elements'Reasoning, web-only), rendered above the answer when present.Tests
reasoning-deltaaccumulation),Reasoningcomponent (collapsed → expand), rename dialog (drawer → dialog → Save callsrenameConversation), store rename (optimistic update + blank-title guard), reasoning render in a message.npm run lint0 errors;jest1266/1266 (154 suites).Not done (needs your hardware)
Real-device visual verification (iOS/Android) — can't run a simulator here. Everything is unit/integration-tested; the visuals are standard NativeWind.
🤖 Generated with Claude Code