Repository navigation
fix(gui): friendly error messages, failure bubble persistence, and default UX tweaks - #52
Merged
Merged
Conversation
- Map raw agent/API errors to user-friendly i18n copy (credit, auth, rate-limit, server, context, network) via classifyAgentError() - Restore failure bubbles on reload for runs that failed before the agent saved any assistant entry (e.g. HTTP 402 on first LLM call) - Orphan-run detection via timestamp window matching to prevent misalignment of run → turn pairing in applyRunMetadata - Default showThinking to false; deepseek-v4-pro thinking level to high - Remove technical jargon from user-facing copy (FUTURE_AGENT_GRPC_ADDR, Future Agent, API Key) and polish for non-technical audience - Include recharge URL in insufficient-credit error message - Drop trailing ellipsis from "选择聊天" / "Select chats"
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.
Changes
1. User-friendly error messages
classifyAgentError()maps raw agent/API error blobs to actionable i18n copymessagefield from embedded JSON, strips the noise like "Request: N messages, N KB."2. Failure bubbles survive thread switches / reload
recoverFailedRuns()rebuilds failure bubbles from therunstable for turns that left no trace in the agent session JSONL (e.g. the first LLM call was rejected with HTTP 402)3. Copy polish — no technical jargon
failure.connect: removedFUTURE_AGENT_GRPC_ADDR/127.0.0.1:50051, now says to quit and reopen FutureOSnotice.agentUnavailable,connectionError, etc.4. Default UX tweaks
showThinkingdefaults tofalse(reasoning content hidden by default)xhightohigh