Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
3a83e6b
fix(ide): global focus-visible ring and 4.5:1 text tokens in both the…
claude Dec 5, 2026
318f77f
fix(ide): keep the sidecar alive on errors nobody caught (#503)
claude Dec 5, 2026
ff3c0bf
fix(ide): never overwrite a malformed or externally edited settings.j…
claude Dec 5, 2026
2767e27
ci(ide): rust-cache, unit tests before the Rust build, cargo fmt job …
claude Dec 5, 2026
543da95
perf(ide): drop the Monaco contributions the IDE never uses from the …
claude Dec 5, 2026
ad33860
fix(ide): wait for the services to stop before the IDE exits (#505)
claude Dec 5, 2026
78c303c
test(ide): strict-null types in the contrast and outline checks (#515)
claude Dec 5, 2026
9790140
test(ide): wait on signals instead of sleeps in five timing tests (#516)
claude Dec 5, 2026
36ccb04
Merge branch 'ide-g-o13-o14' into claude/project-thread-tfobqu
claude Dec 5, 2026
5f2d865
feat(ide): chat loading and error states, starter prompts, double Esc…
claude Dec 5, 2026
ee70f30
Merge branch 'eng-d/chat-view-o8-o9' into claude/project-thread-tfobqu
claude Dec 5, 2026
b1472ac
feat(ide): one toast per chat, pausable info toasts, errors read once…
claude Dec 5, 2026
6fb89b6
feat(ide): pinned Needs you chats, attention badge and next-chat comm…
claude Dec 5, 2026
7b2fd55
Merge branch 'worktree-agent-a4b044ca9fc6ac43a' into claude/project-t…
claude Dec 5, 2026
2fe21b6
feat(ide): scene freshness chip, load placeholder and pending metric …
claude Dec 5, 2026
8821515
Merge branch 'ide-e-o10-o11' into claude/project-thread-tfobqu
claude Dec 5, 2026
7ae06fa
fix(ide): reveal the scene when its load times out instead of hiding …
claude Dec 5, 2026
6b781f8
perf(ide): wait on DOM mutations and frames in the start-up bench, ke…
claude Dec 5, 2026
fb72d7b
perf(ide): load the Markdown preview, extension language support, QR …
claude Dec 5, 2026
21028fd
feat(core): host-neutral prompt templates to ask an agent about a hot…
claude Dec 5, 2026
a0517f6
feat(ide): ask the agent about a hotspot from the lens, Problems, edi…
claude Dec 5, 2026
abf8953
Merge ask-agent (#514) into the overnight branch
claude Dec 5, 2026
22f2763
fix(ide): crash-safe saves, recent list, folder switches and terminal…
claude Dec 5, 2026
8bcee22
feat(ide): shared tree keyboard model for SCM, Search and Debug trees…
claude Dec 5, 2026
fa784ff
feat(core): host-neutral hunk split, revert/keep and review-comment p…
claude Dec 5, 2026
48ca159
feat(ide): sidecar log file and a fatal dialog that names it (#506)
claude Dec 5, 2026
288eddf
feat(ide): edit review dialog traps Tab, closes on Escape and returns…
claude Dec 5, 2026
fbd2589
Merge Rust core reliability and log file (#506, #507)
claude Dec 5, 2026
761b36e
perf(ide): find instruction files by name, share repeated start-up re…
claude Dec 5, 2026
a52d3df
feat(ide): keep-hunks and undo-hunks for a chat's changes, through ch…
claude Dec 5, 2026
c2d47f2
style(ide): cargo fmt the Rust core with the new rustfmt.toml (#516)
claude Dec 5, 2026
cf207ca
fix(ide): a Markdown preview closed before its module loaded leaves t…
claude Dec 5, 2026
66235e7
Merge start-up performance (#517, #518, #519)
claude Dec 5, 2026
2168f2b
test(extension): register core/agent-prompts in the folder map, guard…
claude Dec 5, 2026
bec7588
feat(ide): explorer badges and filter for the files the active chat t…
claude Dec 5, 2026
e08b849
Merge branch 'worktree-agent-ae960d36132b22030' into batch2
claude Dec 5, 2026
408fd9e
feat(agent-flow): open in editor from the pinned building and functio…
claude Dec 5, 2026
57f4007
test(ide): read sources with LF line endings so the start-up tests pa…
claude Dec 5, 2026
bc7d9cc
Merge branch 'claude/project-thread-tfobqu' into batch2
claude Dec 5, 2026
a1fe31c
Merge branch 'worktree-agent-a5a2acaf9f9cbb0fa' into batch2
claude Dec 5, 2026
3137a1e
feat(ide): per-function turn delta, turn lens and regression chip (#5…
claude Dec 5, 2026
0b550d7
feat(ide): Code-XR MCP reads a live analysis state file and offers ge…
claude Dec 5, 2026
f6c97dd
Merge per-function turn delta and regression chip (#520, #527)
claude Dec 5, 2026
d2c34b5
refactor(core): split the hunk diff into small helpers under the comp…
claude Dec 5, 2026
bebb926
feat(ide): per-hunk Keep/Undo and line comments sent back as one draf…
claude Dec 5, 2026
a7e39a4
fix(ide): count_of is a Unix test helper, so Windows clippy sees no d…
claude Dec 5, 2026
8e0028e
Merge branch 'claude/project-thread-tfobqu' into batch2
claude Dec 5, 2026
d8c37ab
Merge per-hunk review and line comments (#521)
claude Dec 5, 2026
6bddfb2
feat(ide): agent cost meter and system notifications (#523)
claude Dec 5, 2026
40f1de6
Merge cost meter and system notifications (#523)
claude Dec 5, 2026
74c42ad
feat(ide): analysis-aware @ mentions, composer images and the prompt …
claude Dec 5, 2026
7c6a06d
Merge composer mentions, images and prompt library (#522, #528)
claude Dec 5, 2026
d5d8a71
fix(ide): drop an unused import after the merge
claude Dec 5, 2026
efd7829
test(extension): register core/agent-review and the new core modules …
claude Dec 5, 2026
5d01597
feat(ide): agents' commands die with the IDE, even if its Node proces…
claude Dec 5, 2026
9034bb6
Merge MCP live state, get_functions and agent process cleanup (#524)
claude Dec 5, 2026
df8575a
feat(ide): remember the live analysis column, reopen tab, default key…
claude Dec 5, 2026
e732ba0
feat(ide): tab-list keys, Focus Latest notification, accessibility su…
claude Dec 5, 2026
63eaeab
Merge branch 'worktree-agent-afcbb7761218c23ba' into batch3
claude Dec 5, 2026
270a441
perf(ide): wait on the sidecar's exit in a blocking thread instead of…
claude Dec 5, 2026
17bfcf6
feat(ide): fork a chat from a user message over ACP session/fork (#531)
claude Dec 5, 2026
43187c8
perf(ide): derive the side bar's width from the layout state instead …
claude Dec 5, 2026
d8ad434
fix(ide): write to the sidecar from its own thread and let a second c…
claude Dec 5, 2026
ecc393c
feat(core): agent board model: columns, card order, latest step, arro…
claude Dec 5, 2026
548ce40
feat(ide): agent board tab with live cards and inline approvals (#530)
claude Dec 5, 2026
30af121
Merge branch 'worktree-agent-a27cb8e4766ea92e5' into batch3
claude Dec 5, 2026
145403e
fix(ide): a failing close prompt falls back to a standalone dialog, t…
claude Dec 5, 2026
71d2fc4
Merge branch 'worktree-agent-a951e2d1a0da6cfa1' into batch3
claude Dec 5, 2026
526a9c8
feat(ide): Fork from here action on a user message, with worktree and…
claude Dec 5, 2026
ba8ebf3
fix(ide): a close prompt that cannot be shown keeps the window open i…
claude Dec 5, 2026
b7f5007
docs(ide): describe the close prompt fallback (#534)
claude Dec 5, 2026
d3811a4
Merge branch 'worktree-agent-a927b769e6d6c9450' into batch3
claude Dec 5, 2026
2a127dd
feat(ide): bench --open-delay and --warm-editor options passed to the…
claude Dec 5, 2026
f1e2192
perf(ide): warm the editor up offscreen at idle after start-up (#533)
claude Dec 5, 2026
ff6d133
fix(ide): the sidecar's bench URL carries the page options, so the pa…
claude Dec 5, 2026
da39e00
Merge branch 'worktree-agent-a7f931836b1a8204e' into batch3
claude Dec 5, 2026
b38c8a8
docs(ide): overnight polish notes for epic #502
claude Dec 5, 2026
e5ff7b4
fix(ide): the agent board follows session activity instead of polling…
claude Dec 5, 2026
f67ee3e
fix(ide): keep only the session cursors that can be fork points (#537)
claude Dec 5, 2026
6b88e4d
fix(ide): the test-only child pid accessor is unix-only, like its tes…
claude Dec 5, 2026
7240a4c
fix(ide): cap @problems and @terminal snapshots so a long Problems li…
claude Dec 5, 2026
5cb106c
fix(ide): @diff falls back to the index only without commits, never o…
claude Dec 5, 2026
6b12f89
feat(core): chat search matching and Markdown export in core/agent-tr…
claude Dec 5, 2026
d65de7f
Merge branch 'worktree-agent-a30bbfaa6472a1f52' into batch3
claude Dec 5, 2026
7775ada
feat(core): hotspot list for the prompt library's {{hotspots}} from m…
claude Dec 5, 2026
3bb3377
feat(extension): Ask agent from the function CodeLens, Problems quick…
claude Dec 5, 2026
e446826
Merge branch 'worktree-agent-a2def750abb50b5ac' into batch3
claude Dec 5, 2026
15b02c7
docs(ide): VS Code parity table and batch 4 in the overnight notes (#…
claude Dec 5, 2026
a05f79e
feat(ide): search chat transcripts in the Chats view and export a cha…
claude Dec 5, 2026
efd17bf
Merge branch 'worktree-agent-a291c6a0a0ee5161f' into batch3
claude Dec 5, 2026
880cfcb
fix(ide): finish the agent surfaces: one wording in en and es, board …
claude Dec 5, 2026
0acb382
docs(ide): keyboard paths of the agent surfaces and the new explorer …
claude Dec 5, 2026
7c82452
feat(core): highlight-in-scene message and scene outlines for an agen…
claude Dec 5, 2026
2d544e6
refactor(core): split the highlight payload builder under the complex…
claude Dec 5, 2026
4879700
feat(ide): Show in scene on a finished agent turn, plus Chat: Show La…
claude Dec 5, 2026
8352e42
Merge branch 'feat/o38-turn-in-scene' into batch3
claude Dec 5, 2026
e7a5dfb
perf(ide): start Monaco's editor worker once Monaco is loaded, ahead …
claude Dec 6, 2026
c2a7003
docs(ide): editor worker early and the editor.api split that did not …
claude Dec 6, 2026
9a6afc4
Merge branch 'worktree-agent-a136f8869804fc35a' into batch3
claude Dec 6, 2026
d6e0f77
docs(ide): batch 5 in the overnight notes (#539, #540, #541)
claude Dec 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/actions/ide-tauri-installers/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ runs:
shell: bash
run: rustup toolchain install stable --profile minimal && rustup default stable

- name: Cargo registry cache
uses: actions/cache@v4
# target/ plus the registry and git checkouts (O14 #516); the same key per OS as the
# `tauri` job of ide-tauri.yml, which builds the same release profile.
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: cargo-registry-${{ runner.os }}-${{ hashFiles('apps/ide/src-tauri/Cargo.lock') }}
restore-keys: cargo-registry-${{ runner.os }}-
workspaces: apps/ide/src-tauri -> target
shared-key: ide-tauri-${{ runner.os }}

# The pinned Node runtime (scripts/bundledNode.mjs): checked against its pinned SHA-256
# whether it comes from the cache or from nodejs.org.
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/ide-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: IDE benchmark
# It is the yardstick of the desktop-shell migration (Electron to Tauri, epic in
# docs/ide/tauri-migration.md): the same driver and the same numbers before and
# after. Not a gate: runners are noisy, so it only reports (job summary + JSON
# artifact). Runs on a manual dispatch and on pull requests that touch it.
# artifact). Runs on a manual dispatch and on pull requests to `ide` that touch it.
#
# R13 (#491) removed Electron from the tree. The "before" side is now the last commit
# that had it, BASELINE_SHA below, checked out next to the working tree and built there
Expand All @@ -28,16 +28,6 @@ on:
- 'apps/ide/scripts/benchCompare.mjs'
- 'apps/ide/scripts/tauri.mjs'
- 'apps/ide/src-tauri/**'
push:
branches:
- 'claude/project-thread-urap9o'
paths:
- '.github/workflows/ide-bench.yml'
- 'apps/ide/scripts/bench.mjs'
- 'apps/ide/scripts/benchSizes.mjs'
- 'apps/ide/scripts/benchCompare.mjs'
- 'apps/ide/scripts/tauri.mjs'
- 'apps/ide/src-tauri/**'

permissions:
contents: read
Expand Down Expand Up @@ -76,19 +66,32 @@ jobs:
with:
ref: ${{ env.BASELINE_SHA }}

# The baseline is a pinned commit, so its sizes on one OS never change: measured once,
# then restored (O14 #516). After the checkout, whose clean would delete the file.
- name: Cached baseline sizes
id: sizes-cache
uses: actions/cache@v4
with:
path: apps/ide/bench-sizes-electron-${{ runner.os }}.json
key: ide-bench-electron-sizes-${{ env.BASELINE_SHA }}-${{ runner.os }}

- name: Setup Node
if: steps.sizes-cache.outputs.cache-hit != 'true'
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Install
if: steps.sizes-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Build the installers
if: steps.sizes-cache.outputs.cache-hit != 'true'
run: npm run dist --workspace=code-xr-ide

- name: Sizes
if: steps.sizes-cache.outputs.cache-hit != 'true'
run: node apps/ide/scripts/benchSizes.mjs --label=electron --out=apps/ide/bench-sizes-electron-${{ runner.os }}.json

- name: Summary
Expand Down
52 changes: 38 additions & 14 deletions .github/workflows/ide-tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ name: IDE on Tauri
# built and tested on the three operating systems on every pull request and every push to
# the IDE branches:
#
# - the legacy-shell gate (apps/ide/scripts/legacyShellGate.mjs, R13 #491);
# - the Rust core: cargo clippy -D warnings and cargo test (release profile, as built);
# - the IDE's unit tests (Node's runner, as in ci.yml's gate);
# - the legacy-shell gate (apps/ide/scripts/legacyShellGate.mjs, R13 #491) and the IDE's unit
# tests, on pushes only and BEFORE the Rust build, so a TypeScript failure costs a minute, not
# a build: on pull requests ci.yml's `npm test` already runs both on the same three systems
# (O14 #516);
# - the Rust core: cargo clippy -D warnings and cargo test (release profile, reusing the
# release build's dependencies), with target/ and the registry cached by Swatinem/rust-cache;
# - cargo fmt --check (job `rustfmt`, Linux only: formatting does not depend on the system);
# - the smoke run (apps/ide/scripts/smoke.mjs): the probes run inside the real page through
# the core (no WebDriver, which macOS lacks), plus the native menu, the message box path
# and the profile migration's "no trace in a smoke run";
Expand Down Expand Up @@ -88,9 +92,16 @@ jobs:
- name: Install
run: npm ci

# O14 (#516): on pull requests ci.yml's `npm test` runs these two on all three systems;
# pushes to ide and claude/** have no ci.yml run, so they run here, before any Rust.
- name: Legacy-shell gate (R13 #491)
if: github.event_name != 'pull_request'
run: node apps/ide/scripts/legacyShellGate.mjs

- name: Unit tests
if: github.event_name != 'pull_request'
run: npm run test:unit --workspace=code-xr-ide

- name: Tauri system libraries (Linux)
if: runner.os == 'Linux'
run: |
Expand All @@ -106,15 +117,13 @@ jobs:
- name: Rust toolchain
run: rustup toolchain install stable --profile minimal --component clippy && rustup default stable

- name: Cargo registry cache
uses: actions/cache@v4
# target/ plus the registry and git checkouts, keyed on the toolchain and Cargo.lock.
# One key per OS, shared with the installers action (the same release profile).
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: cargo-registry-${{ runner.os }}-${{ hashFiles('apps/ide/src-tauri/Cargo.lock') }}
restore-keys: cargo-registry-${{ runner.os }}-
workspaces: apps/ide/src-tauri -> target
shared-key: ide-tauri-${{ runner.os }}

- name: Build (web, sidecar, bridges, Rust core)
run: npm run build --workspace=code-xr-ide
Expand All @@ -123,13 +132,12 @@ jobs:
working-directory: apps/ide/src-tauri
run: cargo clippy --release --locked --all-targets -- -D warnings

# --release on purpose: the dependencies are already compiled in that profile by the build
# above, so only the test harness is new; a debug `cargo test` would rebuild all of them.
- name: cargo test
working-directory: apps/ide/src-tauri
run: cargo test --release --locked

- name: Unit tests
run: npm run test:unit --workspace=code-xr-ide

# A session bus of its own, as on a desktop: the runner's systemd user bus activates
# portals that cannot reach the virtual display, and GTK waits 25 s + 2 x 5 s on them
# at start-up (#480). No GPU render node on the runner: WebKitGTK's DMA-BUF renderer off
Expand Down Expand Up @@ -182,6 +190,22 @@ jobs:
shell: bash
run: CODEXR_NODE="$(node -p process.execPath)" node --experimental-strip-types --no-warnings apps/ide/scripts/extensionCompat.mjs --built "$(ls apps/vscode-extension/artifacts/*.vsix | head -n 1)"

# Formatting only (apps/ide/src-tauri/rustfmt.toml). No system libraries, no build.
rustfmt:
name: cargo fmt --check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Rust toolchain
run: rustup toolchain install stable --profile minimal --component rustfmt && rustup default stable

- name: cargo fmt --check
working-directory: apps/ide/src-tauri
run: cargo fmt --check

installers:
name: installers (${{ matrix.os }})
if: github.event_name != 'pull_request'
Expand Down
3 changes: 3 additions & 0 deletions apps/ide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ The scene is a second webview of the window, made by the Rust core (`src-tauri/s

**Analyse on open (#139).** When a folder opens (at launch with `--folder`, from File > Open Folder… or Open Recent), the IDE analyses it in XR (deep) without a click, the same analysis as the button. The Code-XR view's **Analyse in XR when a folder opens** checkbox turns it off; the choice is kept in the core's global state (`ide.analysis.autoStartOnOpen`, `xr-deep` or `off`, on by default). Without a ready Python environment it waits for one and never sets it up itself. It never asks first, whatever the project's size (#203): the progress notification counts the files as they are analysed (`28/833`), and the scene's header then shows how many the analysis took, read from its own `data.json` (`analysis/analysedFiles.ts`), so the number always matches the analyser's filters. While the scene is open the IDE watches that `data.json` (`watchAnalysedFileCount`, debounced) and the header follows each re-analysis on save (`codexr:analysis:scene-files-changed`). Reopening the folder a window already shows reuses its running scene; opening another folder closes the old scene and stops its server, so a project left behind is not served on.

**Scene freshness (O10 #512, O11 #513).** The header carries a chip that says where the scene stands against the disk: *Updating…*, *Updated 12 s ago* (redrawn every 15 s, briefly highlighted on each refresh unless reduced motion is on), *Paused: dependency graph shown* (the scene shows another analysis, so the classic view's `data.json` waits) or *Not following changes* (the core's auto-analysis setting is off; a **Follow changes** button turns it back on). It is fed by `codexr:analysis:scene-updated` (`SceneUpdatedEvent`: revision, refresh state, mode, following), sent from `AnalysisService` through `followRefreshStatus` (`analysis/sceneRefresh.ts`). Until the scene's page has loaded, the native view stays hidden and the slot shows a placeholder; a Tauri webview reports only finished loads, so `showScene` gives up after `SCENE_LOAD_TIMEOUT_MS` (45 s, a cold WebKitGTK can take 35 s) and `codexr:analysis:scene-load` tells the renderer, which then offers **Reload** (a fresh view with a new sign-in link) and **Run again**. An agent turn's metric delta carries a `freshness` (`fresh`, `paused`, `timeout`, `not-following`): when the scene did not catch up, the chat says *delta pending* with the reason instead of comparing stale data.

**Every analysis of the extension (#398).** `src/shared/analysisKinds.ts` is the one table of the eleven kinds of the extension's "Code-XR: Analysis" submenu: a file (XR, LivePanel), a folder and the project (XR, XR deep, LivePanel, LivePanel deep) and Visualize DOM for an HTML file, each with its label, palette command, mode, target, depth and the files it applies to (file kinds: the core's `SUPPORTED_LANGUAGES` without HTML, the metric analyzer's contract; the DOM: `.html`, `.htm`, `.xhtml`). The explorer (on a file, a folder, or its free space for the project), the tab menu and the editor's own Monaco menu read it to offer **Run Last: <kind>** (the window's last explicit analysis, the extension's default `project-xr-deep` before any) and the **Code-XR: Analysis** submenu with the kinds that apply; the palette has one **Code-XR: Analyse ...** command per kind (a file kind on the active editor's file, a folder kind on its folder) and the Analysis view a button per project kind. The renderer sends one call, `analysis.analyse(kind, path)`; the main process checks the kind, that the workspace path stays inside the folder (also through links), exists and is what the kind analyses (`analysis/analysisTarget.ts`), then maps it to `AnalysisOrchestrator.orchestrateAnalysis(path, mode, 'file' | 'directory', context, deep)`, refusing as before without a folder or a ready Python environment. The Monaco submenu goes through Monaco's menu registry (`editor/analysisEditorMenu.ts`; `addAction` has no submenus) with per-editor context keys. The context menu (`contextMenu.ts`, positions and keys in `contextMenuModel.ts`) opens a submenu on hover, Right, Enter or Space and closes it with Left or Escape, beside its item and left of the scene view.

**Help > About lists the dependencies (#161)**: Python, the analysis environment, each pinned package, the language parsers (checked with `download_parsers.py --check`, no network) and cloudflared, each marked `[ok]`, `[installing]`, `[missing]` or `[problem]`, with **Install missing dependencies** when the IDE can install one of them.
Expand Down Expand Up @@ -399,6 +401,7 @@ The IDE opens in the **Agent** layout: chats with the person's own coding agents
- **First run (AF13, #278):** until the person skips it or has a chat, the editor area's welcome view carries a three-step guide (open a folder, pick an agent and install it or sign in, start the first chat), each step drawn from the window's real state and redrawn as it changes (`gettingStartedView.ts`, its model in `agentSetupModel.ts`). *Skip* or the first chat sets `codexr.agentFirst.onboarded` and it never opens on its own again; *Chat: Show Getting Started* reopens it as a tab (`guide:getting-started`).
- **Welcome and guided tour (CI12, #404):** on the first launch, once the window has settled and after the launch animation if one plays, a welcome card offers *Take the tour* or *Skip*; the tour spotlights the activity bar, Chats, the Explorer, the Code-XR view, the editor, the live analysis column, the status bar and the command palette, one card at a time with Next / Back / Skip (Esc skips, the arrows move, the focus stays in the card). Steps whose part is missing in the layout are skipped (the live column in Classic mode without a scene); the side-bar view is shown for its step and restored at the end. The scene's native view is taken off the screen while the tour is open (`ScenePanel.setSuspended`), since nothing can be drawn over it. Taking or skipping it sets `codexr.tour.done` in localStorage; *Help: Start the Guided Tour* (palette and Help menu) opens it again, and `workbench.welcomeTour` (off in the smoke run) stops it opening on its own. Model and placement in `tour/tourModel.ts` (unit-tested in `test/tour.test.ts`), every string in `tour/tourStrings.ts`, the drawing in `tour/tourView.ts`. The Get started guide is untouched and waits in the editor area underneath.
- **Signing in (AF14, #297):** a terminal sign-in method runs the agent's login program directly, with no shell, in a terminal tab of its own (`TerminalHost.runProgram`, shown through `TerminalPanel.runTask`), so nothing is typed into the person's shell; the agent is checked again when it ends. For Claude Code the login hint points at the adapter script with `--cli`; the IDE runs the native `claude` binary that ships beside the adapter (`nativeLoginProgram`, or `CLAUDE_CODE_EXECUTABLE`) instead, because on Windows a console program started through the IDE's own GUI executable gets no keyboard or output from the terminal. Any other terminal sign-in that would still run JavaScript through the IDE's executable runs with the system's Node.js on Windows, or says how to run it yourself (`consoleLoginProgram`); the smoke run checks on all three platforms that typing reaches a program in a terminal. *API key* methods (Codex and Gemini CLI mark them with `_meta["api-key"].provider`) open a password field: the key is kept by the OS secret store (`agent-keys.json`, the same `KeyVault` as the built-in agent's keys), handed to that agent alone as its provider's variable (`OPENAI_API_KEY`/`CODEX_API_KEY`, `GEMINI_API_KEY`, `ANTHROPIC_API_KEY`) on every start, dropped if the agent refuses it, and forgotten with *Forget key*. Agent-side sign-ins (ChatGPT, Google) send `initialize` first and get `DISPLAY`/`WAYLAND_DISPLAY` so the agent can open the browser on Linux. *Check* asks `auth/status` again while the agent answers `unknown` (Codex reads its login in the background; Claude Code's own read can time out on a cold start). *Check* asks the agent who is signed in with `auth/status` (an ACP draft that Claude Code's and Codex's adapters answer) and reports *Needs login* or *Signed in as ...*, because Claude Code opens sessions while signed out and only refuses the first prompt. Agents that cannot say are judged by `session/new`.
- **Cost and system notifications (O21, #523):** the context meter of a chat adds the session cost an ACP agent reports in `usage_update.cost` ("Context 41k / 200k · $0.42", formatted with `Intl.NumberFormat` by `core/agent-prompts/agentActivity.ts`); an agent that reports none (a subscription) shows no figure, never $0.00. What each update adds in US dollars is recorded in the usage ledger as reported cost (Agents > Usage and budget); other currencies and units are shown in the chat only. When the window is not focused and an agent finishes, fails or asks for an approval, `agents.systemNotifications` (on by default) adds an operating-system notification beside the in-app toast: the renderer decides (`shouldNotifySystem`, pure), `agentSessions.systemNotify` asks main, which refuses while the window is focused or for another window's chat and bounds the text (`systemNotices.ts`), and the core shows it with `tauri-plugin-notification` (`src-tauri/src/notifications.rs`); approvals also call `request_user_attention` (taskbar flash, Dock bounce, urgency hint). The page never calls the plugin: the app capability grants none of its commands. A click focuses the window and opens the chat where the platform reports clicks (Windows while the toast is on screen, not from the Action Center; macOS; Linux servers with actions); elsewhere the in-app toast's *Open chat* remains. Dev builds: on Windows a build in `target\debug` or `target\release` shows its toasts as PowerShell's, and one elsewhere that is not installed may be dropped (toasts need the installed app's AppUserModelID, `org.codexr.ide`); on macOS `tauri dev` shows them as Terminal's.
- **Importing an agent's chats (AF15, #298):** *Import chats* on a ready agent lists the chats it keeps for the open folder (`session/list`, newest first, at most 200, none already in the IDE) and adds the chosen ones; each reads its messages from the agent's `session/load` replay the first time it opens (`historyPending`), then continues the same agent session. The agent reads its own history files; the IDE never opens them.

## VS Code extensions (stream `ide-extensions`, epic #251)
Expand Down
4 changes: 2 additions & 2 deletions apps/ide/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export default [
patterns: [
{ group: ['node:*'], message: 'The renderer cannot use Node. Add a member to CodeXRApi instead.' },
{ group: ['../main/*', '../sidecar/*', '../bridge/*'], message: 'The renderer may only import src/shared.' },
// core/metrics and core/xr are the exceptions: pure logic shared with the extension (#173/#178, #19).
{ group: ['@codexr/core/*', '!@codexr/core/metrics', '!@codexr/core/xr', '@codexr/logging/*'], message: 'The core runs in the main process only (#15), except the pure core/metrics and core/xr. Add a member to CodeXRApi instead.' },
// core/metrics, core/xr, core/agent-prompts, core/agent-review, core/agent-board and core/agent-transcript are the exceptions: pure logic shared with the extension (#173/#178, #19, #514, #521, #530, #538).
{ group: ['@codexr/core/*', '!@codexr/core/metrics', '!@codexr/core/xr', '!@codexr/core/agent-prompts', '!@codexr/core/agent-review', '!@codexr/core/agent-board', '!@codexr/core/agent-transcript', '@codexr/logging/*'], message: 'The core runs in the main process only (#15), except the pure core/metrics, core/xr, core/agent-prompts, core/agent-review, core/agent-board and core/agent-transcript. Add a member to CodeXRApi instead.' },
],
}],
'no-restricted-properties': ['error',
Expand Down
Loading
Loading