Skip to content

Fix 37 open issues and add agent layout styles - #56

Merged
fabricio3g merged 2 commits into
mainfrom
fix/open-issues
Nov 24, 2026
Merged

fabricio3g merged 2 commits into
mainfrom
fix/open-issues

Conversation

@fabricio3g

@fabricio3g fabricio3g commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Two commits:

  1. feat(desktop): agent layout styles, session pane, and workspace polish — UI work that was already in progress: an Appearance → "Agent layout" setting with nine transcript styles, a dockable session pane, and a fix so the bottom dock no longer runs under the right column.
  2. fix: resolve 32 open issues across core, runtime, TUI and desktop — every open issue was checked against the code, and all 48 are real. This PR fixes 37 and part of Desktop web search: Rank multilingual queries using Unicode-aware terms #32, each with a regression test except Home research: Retry can leave a finished answer stuck on the progress placeholder #48/Home research: Retried answers can cite sources from the previous version #49. (The commit title's "32" is a miscount.)

Also: the model chooses search result counts (c749f78)

  • Removes Settings → Search "Target results" (default 6, a leftover from the old Electron search). The config key is dropped on load and no longer synced to the core's web.json.
  • Home web_search takes max_results (1–50) from the model; the depth's 8/12/18 is only the fallback. Home research no longer blocks further searches once it judges the evidence sufficient. Only the turn's tool budget and the loop guard bound it.

What the fixes change

Core web_fetch / search

Agent loop / compaction

Runtime undo/redo

TUI

Desktop search and research

Desktop Home / Code / RAG

Notes for review

  • Persisted format: edits.rs batches gain anchor/unresolved and the history gains compacted_floor, all #[serde(default)], so existing saved histories still load. The daemon accepts the compaction summary under either role, so sessions compacted before this change still work.
  • Behaviour change: rewind can now refuse in cases it used to "succeed" while silently leaving edits on disk or erasing hand edits. Single-step Undo still works there.
  • Compaction: a short [Earlier messages were compacted…] user note can now appear in stored history where compaction removed a turn.
  • fetchWithRetry now buffers the response body before returning (all callers read small JSON/text bodies), so the timeout covers the whole exchange.
  • ChatSearchModal.svelte had edits from both commits; the UI commit carries the pre-existing version and the fix commit carries Desktop: Conversation search can open a stale result after the query changes #14.
  • #5's issue body on GitHub is truncated; the fix follows its title.

Not fixed here

Real, but each needs its own design or cross-process change: #3, #17 (subagent lifecycle in Desktop), #18, #21–#24 (RAG/document indexing), #25 (computer-use lifecycle), #30 (research cancellation needs operation ids across IPC), #33 (search delivery redesign). #32 is partial: tokenization is Unicode-aware, but scoreText's \b matching is still ASCII-oriented.

Testing

Closes #4, closes #5, closes #6, closes #8, closes #9, closes #10, closes #11, closes #12, closes #13, closes #14, closes #19, closes #20, closes #26, closes #27, closes #29, closes #31, closes #34, closes #35, closes #36, closes #37, closes #38, closes #39, closes #40, closes #41, closes #42, closes #43, closes #44, closes #45, closes #46, closes #47, closes #48, closes #49, closes #50, closes #51, closes #52, closes #53, closes #54
Refs #32

🤖 Generated with Claude Code

- Appearance: add an "Agent layout" setting (AgentStyleId: agente, cards,
  pills, spotlight, rail, accented, notebook, sheet, minimal) that changes
  how reads, edits, diffs, shell cards, thoughts and tasks are drawn in the
  Code transcript, with its styles in app.css and copy in en.json
- Workspace: a dockable "session" pane; the bottom dock no longer runs
  under the right column, and its width divider is measured against the
  space it can actually take
- Code surfaces (composer, live status, work block, step and thought rows,
  tasks/session panels, disclosure) follow the new layout styles; the
  project-controls store is folded into the workspace
- Smoke tests updated for the new pane and layout
Core web_fetch / search
- Resolve relative links against <base href> (#47); skip content roots
  under hidden ancestors (#52); fence code longer than any backtick run
  inside it (#53); lay rowspan/colspan cells on a grid (#46)
- Read charset from the body only for HTML <meta> tags (#38); fit each
  part inside the registry's output caps so the advertised offset matches
  what was delivered (#35)
- Pair DuckDuckGo Lite snippets with their own result row (#27)

Agent loop / compaction
- Summary is a user checkpoint, compaction repairs role order, and
  request-time reminders merge into one user turn (#4)
- Shrink oversized recent and single-line tool results; scale the
  tokenizer gap with the compacted transcript (#5)
- Only report normalization changes that happened; continue replies cut
  by the output limit (max 2) and nudge after an empty Length stop (#6)

Runtime undo/redo
- Anchor edit batches to their prompt so rewind survives compaction, and
  refuse a point inside the compacted part (#8); refuse rewinding over a
  hand edit made between turns (#9); only a missing file counts as absent
  (#10)

TUI
- Resuming a session open in another tab focuses that tab (#11); bind the
  delete confirmation to the session id it was armed on (#12)

Desktop search and research
- SearXNG keeps its base path (#51); Perplexity prefers structured
  citations (#50); per-provider base URLs (#29); Save and use cancels a
  pending autosave (#37); empty results keep an engine healthy (#36);
  timeouts and aborts cover the response body (#34)
- Same-title pages on different hosts stay apart (#26); explicit queries
  are sent as typed (#31); Unicode-aware tokenizer (#32, partial); thin
  page reads never replace a fuller provider body (#42)
- Crawler: hard read cap (#39), working embedding similarity (#40), keep
  trailing slashes (#43), keep paragraphs and fix the summarizer cutting
  the relevant late paragraph (#44), report omitted sources (#45)
- Case-sensitive citation identity and full export URLs (#41); one source
  numbering across sub-queries (#54)

Desktop Home / Code / RAG
- Retry writes the reactive version and keeps sources per version
  (#48, #49); search results are tied to their query (#14); Code scrolls
  to the searched message (#13); steering checks input modalities (#19);
  a filename filter keeps every same-named candidate (#20)
@fabricio3g
fabricio3g merged commit c709fec into main Nov 24, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment