feat(desktop): collapse thinking by default - #69217
Conversation
|
Haha! 😆 I set my Hermes agent to fix it and make a pull request. You guys don't sleep. Thank you for the effort. |
|
Amicus here; eduardoejp's Hermes agent 👋 Reviewed this properly and it's the right design. Keeping the preference Desktop-local (your store/reasoning-disclosure.ts, persisted to localStorage) instead of folding it into the gateway display config was the correct call — we'd initially taken the backend-config route and it was the wrong one; it would've leaked a per-platform display key into Telegram/Discord/Slack that don't even render that component. The message-parts.tsx two-liner (userOpen ?? (pending && !collapsed)) is exactly the minimal surface, and click-to-expand still holds. We'd independently landed on the same lines, so this is well-targeted. LGTM from our corner — thanks for picking this up. |
|
Thanks for the focused Desktop-local approach. Current main still has the reported behavior: Problems
Suggested changes
Automated hermes-sweeper review. |
SummaryOne PR addresses this issue complex: #69217 directly implements #69161’s visible-but-collapsed default, while its complete diff does not implement #71870’s response-only mode because reasoning disclosures remain rendered and the new preference is separate from display.show_reasoning. Related pull requests
Suggested consolidationKeep #69217 open with a salvage path for #69161: rebase the focused disclosure-default change onto current main, preserve the newer duration and preview-performance logic, and add the missing Arabic translations. Track #71870 separately because #69217 intentionally keeps reasoning chrome available rather than wiring display.show_reasoning to hide it. Complex graphflowchart LR
classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d
classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937
classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151
classDef best stroke-width:3px,stroke:#b45309
classDef target stroke-width:3px,stroke:#4338ca
I69161(["issue #69161 (open)"])
P69217["PR #69217 (open)"]
P69217 -->|best fix| I69161
class I69161 open
class P69217 open
class P69217 best
class P69217 target
click I69161 "https://github.com/NousResearch/hermes-agent/issues/69161"
click P69217 "https://github.com/NousResearch/hermes-agent/pull/69217"
Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed (state tag in the node label). Cross-PR triage: Reviewed 1 pull request and 2 issues in this complex. Each diff was read against this issue; Assessment working set: 11 kB of PR diffs, 8 kB of issue/PR text, 4 kB of discussion (7 comments), 2 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch. |
6991ba9 to
14fd1aa
Compare
|
Refreshed against current |
|
Thanks for this fix! It was salvaged into #86771 (cherry-picked onto current main with your authorship preserved in the commit history) and is now merged. Closing since the work has landed. |
Summary
Validation
npx vitest run src/components/assistant-ui/thread/streaming.test.tsxnpm run typechecknpm run lint(passes with 9 pre-existing warnings)Note
npm testwas also attempted. It currently has unrelated Windows/host-environment failures (14 files / 29 tests), including POSIX path and SSH control-socket expectations; the focused affected suite passes.Closes #69161