Skip to content

IDE overnight polish: reliability, agent UX, start-up, new agent features, agent board and fork (epic #502) - #529

Open
aMonteSl wants to merge 100 commits into
idefrom
claude/project-thread-tfobqu
Open

aMonteSl wants to merge 100 commits into
idefrom
claude/project-thread-tfobqu

Conversation

@aMonteSl

@aMonteSl aMonteSl commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Adrián · project thread

Overnight epic #502 for the Code-XR IDE, batches 1 to 5.

First batch of the overnight epic #502 for the Code-XR IDE.

Reliability

Agent-first UX

Code-XR integration

Start-up (helps #500)

Batch 2: new agent features

Batch 3

Batch 4

Batch 5

Quality

Checks (local, batch 5 tip): IDE npm test 1563 pass / 0 fail; extension test:unit 1505 pass, typecheck and lint clean (Node 24); cargo fmt --check, cargo clippy -D warnings clean; cargo test 138 pass.

Closes #503, #504, #505, #506, #507, #508, #509, #510, #511, #512, #513, #514, #515, #516, #517, #518, #519, #520, #521, #522, #523, #524, #525, #526, #527, #528, #530, #531, #532, #533, #534, #535, #536, #537, #538, #539, #540, #541 (closed by hand after merge: base is not the default branch).


Generated by Claude Code

claude added 30 commits December 5, 2026 21:10
…mes (#515)

Add one zero-specificity :focus-visible ring from the accent token (Monaco
and xterm internals excluded) and drop the bare outline:none rules that left
crumbs, sashes, menu items, viewers, the debug console input and the diff and
extension panes with only a hover tint (1.04-1.19:1). Darken light accent,
ok, crit and warn, lighten dark muted, crit and symbol, and deepen the debug
status bar so every text role clears 4.5:1 on chrome, panel, editor, raised,
hover and active. designTokens.test.ts now measures every text token on every
surface in both themes and fails on outline removal outside an allow-list.
Log unhandled rejections and uncaught exceptions to the IDE log and the
Output panel instead of letting Node end the process (which closed the
app), catch rejected promises from RPC notification handlers, and report
failures of the Open Recent / Clear Recently Opened menu actions.
…son (#504)

A user-scope change now re-reads settings.json first, so edits made
outside the IDE are kept, and refuses with a clear error (shown by the
renderer's 'Could not change the setting' notification) when the file does
not parse, leaving it untouched. User changes are serialized.
…516)

Replace the registry-only cache with Swatinem/rust-cache (target/ of
apps/ide/src-tauri, one shared key per OS) in ide-tauri.yml and the
installers action. Run the legacy-shell gate and unit tests before any Rust,
and only on pushes: on pull requests ci.yml's npm test already runs both on
the same three systems. Keep cargo test in the release profile so it reuses
the build's dependencies. Add a Linux cargo fmt --check job and rustfmt.toml
(sources not reformatted here). Drop the stale claude/project-thread-urap9o
push trigger from ide-bench.yml and cache the pinned baseline's sizes per OS.
stopServices now awaits terminals, MCP servers, agent chats, language
servers, extension hosts and debug sessions together (allSettled, capped
at 2.5 s, within the core's 3 s) and logs any that fail or overrun. The
sidecar's will-quit event gains waitUntil, and app.exit is only requested
once the handed-over shutdown has settled.
agentsChat: a barrier that opens when both sub-agents are in flight instead of
a 30 ms hold. agentSessions: wait for the permission request before cancelling.
watcher: rewrite a probe file until the watch reports it instead of a 300 ms
settle (fs.watch has no ready event). extensionHost: await the notification's
delivery. lspEdits: mocked timers for the symbol-search debounce.
… and an accessible transcript (#510, #511)

#510 (O8): chatPhase picks a skeleton until the first load resolves (no more
flash of the empty prompt in restored tabs), an error notice with Retry when
it fails, the empty prompt with four starter prompt chips that fill the
composer without sending, or the conversation. New output while the reader
is scrolled up raises a floating New activity pill. Esc in the composer arms
first (Press Esc again to stop) and stops on a second press within 1.5 s
(escapeIntent); the Stop button is unchanged.

#511 (O9): the transcript is aria-busy while the agent streams, and an
sr-only status region speaks only transitions (chatAnnouncement: finished,
stopped, needs permission, error). The composer is a combobox wired to the
slash popup options (unique ids, aria-activedescendant) and to the
attachment popup. The chat is a size container: below 640px the header
buttons keep only their icon (label as aria-label and title), nothing wraps,
and they get a hover state. Every string of the chat view moves to the en/es
catalogues.
…#509)

A chat's new notice replaces its previous toast and closes when the chat
is opened or read (createSessionNoticeTracker). Info toasts pause while
hovered or focused and resume with the time left; a toast that closes on
its own is no longer pinned just for having actions. Error toasts are
role=alert and are no longer announced a second time.
…and (#508, #509)

- Chats list: a pinned "Needs you" group across projects (approval, then
  failed, then unread), hidden while searching; collapsed projects are
  remembered across restarts.
- The Chats activity item gets a badge (Workbench.setActivityBadge); the
  status bar adds "N done" and opens the most urgent chat on click.
- chat.nextNeedingAttention, default key Ctrl/Cmd+K Ctrl/Cmd+N.
- The dock says "No folder" instead of "Waiting" with no folder open.
- Background refreshes wait while a rename field or delete confirmation
  is open; focus is restored by session after a redraw; the list uses a
  roving tabindex with Up/Down/Home/End.
- Status labels, relative times and attention text in English and Spanish.
…deltas (#512, #513)

O10 (#512): wire codexr:analysis:scene-updated from AnalysisService to the
renderer with the refresh state (revision, settled/pending/paused, mode,
following). The scene header shows a chip (Updating, Updated 12 s ago,
Paused: <analysis> shown, Not following changes with a Follow changes
button), redrawn every 15 s and briefly highlighted on a refresh unless
reduced motion is on. The scene slot shows a placeholder until the page
loads; showScene now gives up after 45 s (a Tauri webview reports no failed
load) and codexr:analysis:scene-load lets the placeholder offer Reload and
Run again. Removes the dead .af-live[data-state='live'] CSS.

O11 (#513): MetricDeltaReport and TurnMetricDeltaView carry a freshness
(fresh, paused, timeout, not-following) from the settle result; a delta not
measured on refreshed data is kept as 'delta pending: <reason>' instead of
comparing stale data or staying silent.
… starts (#507)

- Editor saves (Rust core and the Node workspace) write a temporary file in
  the same folder and rename it, keeping the permissions; symlinks, hard
  links, files of another owner and Windows hidden/system files are written
  in place; Windows renames are retried, then written in place.
- recent.rs holds its lock across read-modify-write, writes atomically and
  changes the list in memory only after the write succeeded.
- host.workspace.set opens the new folder before dropping the old one and
  cancels the window's running search; a closed window cancels it too.
- A terminal whose reader or writer cannot be created kills its shell; the
  per-window limit is checked and reserved under one lock.
- The sidecar logger also writes a rotating log (2 files x 2 MB,
  sidecar.log / sidecar.1.log) in the platform log folder, which the core
  passes as CODEXR_LOG_DIR (Tauri app_log_dir) and the sidecar takes out of
  its environment.
- A non-zero host.app.exit (a failed start-up) and an unexpected sidecar
  exit show a dialog with the log path, distinguishing start-up from later;
  benchmark and smoke runs show none. A sidecar that cannot be spawned shows
  one too instead of a panic.
- The sidecar's last stderr lines that its logger did not write (a crash
  before the log file opened) are appended to the log when it dies.
…ads, keep Monaco's TypeScript worker idle under a language server (#519)
@aMonteSl aMonteSl changed the title IDE overnight polish (#502): reliability, agent attention and review, composer context, scene freshness, start-up, a11y and CI IDE overnight polish: reliability, agent UX, start-up, new agent features, agent board and fork (epic #502) Dec 5, 2026
claude added 26 commits December 5, 2026 22:33
# Conflicts:
#	apps/ide/src-tauri/src/main.rs
#	apps/ide/src-tauri/src/sidecar.rs
… fix, editor menu and top hotspot, plus the prompt library (#536)

Thin VS Code adapters over core/agent-prompts (#514, #528). The extension has
no agent chat, so a draft opens in a new untitled Markdown editor and is
copied to the clipboard; nothing is sent. Registers codeXR.agents.askAboutFunction,
codeXR.agents.askAboutTopHotspot and codeXR.agents.insertLibraryPrompt, two AI
AGENTS rows, and refreshes the feature, tree and guardrail baselines.
…t as Markdown (#538)

The Chats view's search box filters titles at once (case- and accent-insensitive,
core/agent-transcript) and, debounced, asks main to search the stored transcripts;
main reads one chat at a time and a newer search of the same window cancels the
older one. Matches are highlighted in the title and in a one-line snippet;
Ctrl/Cmd+F in the Chats view focuses the box and Esc clears it.

Export chat as Markdown is in the chat header's More actions menu and the
palette: main renders the stored chat with the core, in the display language,
and writes it where the person picks in the system's save dialog.
…loading and error states, focus kept after actions (#540)

- Changes tab, composer attachments, in-app agent toasts and the chat and
  layout palette commands were English-only next to translated neighbours;
  they now read from messages.en/es (the toast says what the system
  notification says).
- Board: Reading the chats / Could not read the chats with Retry before the
  first list; the first card takes the focus; answering an approval keeps the
  focus on its card; the Error column is Failed, as in the Chats view.
- Fork box closes on Escape or a second press and gives the focus back.
- Hunk Keep/Undo, file Keep/Undo and closing a line comment keep the focus
  in the Changes tab.
- Chats search tooltip names this platform's shortcut; singular match count.
- New palette command View: Toggle Files Touched by the Active Chat in
  Explorer (explorer.toggleChatFilter).
- Spanish: Entrar (not Intro), Peticion for prompt, export stop reasons
  aligned with the chat's.
…t turn's files (#541)

The core defines the message once (server/analysis/sceneHighlight.ts:
set { files: [{ path, functions? }] } relative to the analysed folder, or
clear) and every analysis server can send it to its room. The analysis-table
runtime outlines the matching elements of the classic city (files, and
functions where the chart draws them) or of Agent Flow (buildings and their
function floors, read through two new Agent Flow calls), steel outline and
flat roof plate, no glow; Escape in the scene or an analysis switch clears it.
The feature baseline snapshot gains the two runtime parts.
…st Turn in Scene (#541)

A turn that edited files gets Show in scene and Clear highlight in its
footer: the turn's files (diffs, edit locations, metric delta files) and the
functions of its metric delta go to the window's scene through two new IPC
calls, resolved inside the folder and handed to the core's highlight-in-scene
message. The button stays focusable but off, with the reason as tooltip,
without an XR scene, for a LivePanel or DOM page, or while the scene shows
another analysis than the classic city or Agent Flow. A new turn, Esc in the
scene, an analysis switch or Chat: Clear Scene Highlight removes the outlines.
Strings in English and Spanish.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants