Making the prompt for this application more company and language agnostic

This commit is contained in:
2026-11-02 09:48:45 +01:00
parent 0278d7fbd1
commit 80b06b6e08
+62 -390
View File
@@ -44,7 +44,7 @@ Helder ("clear" in Dutch) is a **dark, AI-first macOS workbench for reviewing th
6. **Terminal**: a plain shell in the project folder. 6. **Terminal**: a plain shell in the project folder.
7. **Status bar**: branch, working-tree line totals, cursor position, indentation, encoding, language, active view. Display only. 7. **Status bar**: branch, working-tree line totals, cursor position, indentation, encoding, language, active view. Display only.
Plus: ⌘F search (this file, project contents, file names) as a full-window overlay; recent files (⌘↑/⌘↓); recent projects (⇧⌘O) and a launcher start screen; a file watcher that keeps git, the tree and the open file in step with what the agent writes; Read aloud (system voice) of Markdown and selections; **Clean copy** (the agent writes `.clean-copy`, Helder pops up a "From Claude" card to copy it); **Plak** (send a selection to the user's scratchpad app through a `plak://` URL). Plus: ⌘F search (this file, project contents, file names) as a full-window overlay; recent files (⌘↑/⌘↓); recent projects (⇧⌘O) and a launcher start screen; a file watcher that keeps git, the tree and the open file in step with what the agent writes; and Read aloud (system voice) of Markdown and selections.
The whole UI is dark only. Code is always syntax highlighted (custom highlighter, no external library), in every panel and view. The whole UI is dark only. Code is always syntax highlighted (custom highlighter, no external library), in every panel and view.
@@ -66,7 +66,7 @@ Helder (executable) → HelderUI → HelderServices → HelderCore
### How a window works ### How a window works
- One **workspace model** (`WorkspaceModel`) owns one window. It owns the stores: `SourceControlStore` (git), `ExplorerStore`, `EditorStore`, `CleanCopyStore`, `TerminalStore`, `LayoutStore`, `OverlayStore`, `ToastStore`, `ReadAloudStore`, and every action that spans more than one store. A store never reaches into a sibling; `EditorStore` only reads the git state through a closure. - One **workspace model** (`WorkspaceModel`) owns one window. It owns the stores: `SourceControlStore` (git), `ExplorerStore`, `EditorStore`, `TerminalStore`, `LayoutStore`, `OverlayStore`, `ToastStore`, `ReadAloudStore`, and every action that spans more than one store. A store never reaches into a sibling; `EditorStore` only reads the git state through a closure.
- **One entry point.** Views, the menu bar and the key router all call `perform(Command)`. Context-menu items arrive as `.context(ContextAction)`; the model first asks `SourceControlStore.confirmation(for:)` / `ExplorerStore.confirmation(for:)` and shows the confirm overlay when needed; `.confirmPending` then runs the action. The name prompt submits with `.submitName`, the pass-on prompt with `.passToAgent`. - **One entry point.** Views, the menu bar and the key router all call `perform(Command)`. Context-menu items arrive as `.context(ContextAction)`; the model first asks `SourceControlStore.confirmation(for:)` / `ExplorerStore.confirmation(for:)` and shows the confirm overlay when needed; `.confirmPending` then runs the action. The name prompt submits with `.submitName`, the pass-on prompt with `.passToAgent`.
- **Overlays never stack.** `OverlayStore.current` is one enum value; only the model presents or dismisses it. An `onChange` hook lets the model run closing behaviour however an overlay went away (the Diff gives back the mode it covered). The key router only sees an `OverlayKind` (`none`, `diff(busy:)`, `other`): over the Diff the workspace keys keep working unless the Diff's own menu or prompt is open (`busy`). Toasts may sit on top of any overlay. The Diff draws its own right-click menu and pass-on prompt inside itself, so it stays open. - **Overlays never stack.** `OverlayStore.current` is one enum value; only the model presents or dismisses it. An `onChange` hook lets the model run closing behaviour however an overlay went away (the Diff gives back the mode it covered). The key router only sees an `OverlayKind` (`none`, `diff(busy:)`, `other`): over the Diff the workspace keys keep working unless the Diff's own menu or prompt is open (`busy`). Toasts may sit on top of any overlay. The Diff draws its own right-click menu and pass-on prompt inside itself, so it stays open.
- **Stores report, the model shows.** Stores raise toasts through `notify`/`showToast` hooks that the model wires to `ToastStore`; the model never toasts a second time for the same action. - **Stores report, the model shows.** Stores raise toasts through `notify`/`showToast` hooks that the model wires to `ToastStore`; the model never toasts a second time for the same action.
@@ -76,10 +76,10 @@ Helder (executable) → HelderUI → HelderServices → HelderCore
``` ```
Core/ Core/
Agent/ AgentReference, BracketedPaste, TerminalLaunch (TERM_PROGRAM=Helder), CleanCopy (file name, new-text rule) Agent/ AgentReference, BracketedPaste, TerminalLaunch (TERM_PROGRAM=Helder)
Config/ HelderConfig (tolerant decoding), config resolution, .env project title Config/ HelderConfig (tolerant decoding), config resolution, .env project title
Diff/ Diff models, LineDiff, DiffViews, ViewMode Diff/ Diff models, LineDiff, DiffViews, ViewMode
Files/ FileNode + FileTree, PathUtils, FileType (language, badge), limits + ignore rules, ContextActions (menus), Plak Files/ FileNode + FileTree, PathUtils, FileType (language, badge), limits + ignore rules, ContextActions (menus)
Git/ models, Porcelain parsing (incl. behind/upstream), GitDerivation (rows, commit text), Git/ models, Porcelain parsing (incl. behind/upstream), GitDerivation (rows, commit text),
GitSections (four sections, InlineDiff), GitConsole (echo, input parsing, line classifier), GitBranches GitSections (four sections, InlineDiff), GitConsole (echo, input parsing, line classifier), GitBranches
Highlight/ SyntaxHighlighter + Lexer, one grammar per language (CSS, JSON, JavaScript, Markdown, Markup, PHP, Python, Shell, YAML) Highlight/ SyntaxHighlighter + Lexer, one grammar per language (CSS, JSON, JavaScript, Markdown, Markup, PHP, Python, Shell, YAML)
@@ -107,7 +107,7 @@ UI/
Explorer/ tree column and row glyphs Explorer/ tree column and row glyphs
Editor/ bar, code editor (document, layout, drawing, text view), Diff canvas + overlay, Markdown preview, pass-on panel, symbol popup Editor/ bar, code editor (document, layout, drawing, text view), Diff canvas + overlay, Markdown preview, pass-on panel, symbol popup
Terminal/ agent column, terminal view, colours, pane Terminal/ agent column, terminal view, colours, pane
Overlays/ OverlayHost, search, clean copy, shortcuts, recent files, context menu, name prompt, confirm, overlay keys Overlays/ OverlayHost, search, shortcuts, recent files, context menu, name prompt, confirm, overlay keys
Theme/ Palette, Typography, Metrics, FontRegistry Theme/ Palette, Typography, Metrics, FontRegistry
Resources/Fonts/ IBM Plex Mono 400/500/600/700, IBM Plex Sans 400/500/600/700/400-italic (WOFF2, SIL OFL) Resources/Fonts/ IBM Plex Mono 400/500/600/700, IBM Plex Sans 400/500/600/700/400-italic (WOFF2, SIL OFL)
``` ```
@@ -145,7 +145,6 @@ UI/
| Sessions, column layouts | user defaults, domain `nl.blijnder.helder` in the bundle (`Helder` when run unbundled) | | Sessions, column layouts | user defaults, domain `nl.blijnder.helder` in the bundle (`Helder` when run unbundled) |
| Per-project config | `<project>/.helder/config.json` (user, sparse) and `<project>/.helder/config.default.json` (regenerated on launch) | | Per-project config | `<project>/.helder/config.json` (user, sparse) and `<project>/.helder/config.default.json` (regenerated on launch) |
| Per-project recent files | `<project>/.helder/recent.json` (JSON array of project-relative paths, newest first) | | Per-project recent files | `<project>/.helder/recent.json` (JSON array of project-relative paths, newest first) |
| Clean copy | `<project>/.clean-copy` (written by the agent, only read by Helder) |
Running the app on a scratch folder adds it to the recent-projects list; tests must never touch the real list, defaults or log. Running the app on a scratch folder adds it to the recent-projects list; tests must never touch the real list, defaults or log.
@@ -153,11 +152,11 @@ Running the app on a scratch folder adds it to the recent-projects list; tests m
## E. Build order ## E. Build order
1. Core: models, path utils, file types, config model + resolution, porcelain parser, git derivation/sections, line diff, fuzzy, ripgrep JSON, Markdown parser, MarkdownSpeech, lexer + grammars, PHP symbol parsers, context-menu model, Plak URL builder, clean-copy rule. Port the Core tests (section 8) as you go. 1. Core: models, path utils, file types, config model + resolution, porcelain parser, git derivation/sections, line diff, fuzzy, ripgrep JSON, Markdown parser, MarkdownSpeech, lexer + grammars, PHP symbol parsers, context-menu model. Port the Core tests (section 8) as you go.
2. Services: process runner (run + stream, timeouts, env), executable locator, child reaper, git service, file service (atomic save, containment), watcher, project scanner, search service, config service, recents/session stores, symbol service, speech, logger. Port the Services tests (they use real git in temp repos). 2. Services: process runner (run + stream, timeouts, env), executable locator, child reaper, git service, file service (atomic save, containment), watcher, project scanner, search service, config service, recents/session stores, symbol service, speech, logger. Port the Services tests (they use real git in temp repos).
3. UI theme: palette, typography, metrics, fonts, components, pointer policy. 3. UI theme: palette, typography, metrics, fonts, components, pointer policy.
4. Shell: window, process-per-window, launcher, title bar, status bar, columns + splitters + toggles, key router, menus, overlays host, toasts. 4. Shell: window, process-per-window, launcher, title bar, status bar, columns + splitters + toggles, key router, menus, overlays host, toasts.
5. Explorer, Editor (code view, bar, marking, Diff overlay, Markdown preview, symbols, pass-on), Terminals, Git view, Search, Recent files, Clean copy, Read aloud, Plak, dialogs. 5. Explorer, Editor (code view, bar, marking, Diff overlay, Markdown preview, symbols, pass-on), Terminals, Git view, Search, Recent files, Read aloud, dialogs.
6. Lifecycle (start order, watcher, polling, close/quit flow), session restore, config live reload. 6. Lifecycle (start order, watcher, polling, close/quit flow), session restore, config live reload.
7. UI-level tests on fakes (section 8). 7. UI-level tests on fakes (section 8).
@@ -174,7 +173,7 @@ The sections below are the full specification, area by area. Each section is com
| 3 | Git: commands, status parsing, models, sections, inline diff, console, commit/push/pull, branches, the Git view | | 3 | Git: commands, status parsing, models, sections, inline diff, console, commit/push/pull, branches, the Git view |
| 4 | Editor: one-file model, save rules, code view, change marks, LineDiff, Diff overlay, Markdown preview, PHP symbols, pass-on | | 4 | Editor: one-file model, save rules, code view, change marks, LineDiff, Diff overlay, Markdown preview, PHP symbols, pass-on |
| 5 | Syntax highlighter and every grammar, Markdown parser, MarkdownSpeech, Read aloud | | 5 | Syntax highlighter and every grammar, Markdown parser, MarkdownSpeech, Read aloud |
| 6 | Files: tree, limits, ignore rules, file service, watcher, Explorer, new/rename/delete, search, recent files, every context menu, Plak, Clean copy | | 6 | Files: tree, limits, ignore rules, file service, watcher, Explorer, new/rename/delete, search, recent files, every context menu |
| 7 | Terminals, pass-on bytes, process runner, the full config schema, lifecycle and refresh timings, logging | | 7 | Terminals, pass-on bytes, process runner, the full config schema, lifecycle and refresh timings, logging |
| 8 | Acceptance catalogue: all 929 original tests as plain-English rules | | 8 | Acceptance catalogue: all 929 original tests as plain-English rules |
| Appendix | The original user guide and reference docs, verbatim (sections 1–8 win on conflict) | | Appendix | The original user guide and reference docs, verbatim (sections 1–8 win on conflict) |
@@ -186,7 +185,7 @@ The sections below are the full specification, area by area. Each section is com
- **The agent and terminal panes have no header.** The agent runs as `<shell> -i -c "<ai.command>"` in a login shell. - **The agent and terminal panes have no header.** The agent runs as `<shell> -i -c "<ai.command>"` in a login shell.
- **Merge conflicts** are one unstaged `U` row in **changed**, Stage only, not counted as staged, marked in red: red `U` badge (tooltip `Merge conflict`), a red flag after the path (tooltip `Merge conflict — resolve, then Stage`), a red 3-pt left bar and a red 8 % row fill. Red `#E5534B` is the **one** red in the app; the Explorer shows the `U` letter in that red too. - **Merge conflicts** are one unstaged `U` row in **changed**, Stage only, not counted as staged, marked in red: red `U` badge (tooltip `Merge conflict`), a red flag after the path (tooltip `Merge conflict — resolve, then Stage`), a red 3-pt left bar and a red 8 % row fill. Red `#E5534B` is the **one** red in the app; the Explorer shows the `U` letter in that red too.
- **Delete is permanent** (no Trash) and always asks first. - **Delete is permanent** (no Trash) and always asks first.
- **The terminal right-click menu** has Copy, Paste, Read aloud selection, Plak and (agent pane only) Wait what?. - **The terminal right-click menu** has Copy, Paste and Read aloud selection.
- The search overlay is three columns (This file / Project / Files), not the 70/30 split of the old behaviour doc. - The search overlay is three columns (This file / Project / Files), not the 70/30 split of the old behaviour doc.
Each section ends with its own full list of doc-vs-code conflicts. Each section ends with its own full list of doc-vs-code conflicts.
@@ -836,12 +835,12 @@ These exist because the platform fights the rule in several ways. A re-implement
### 1.10 Design handoff v2 tokens (`docs/design_handoff_helder_app_v2/README.md`, prototype HTML) ### 1.10 Design handoff v2 tokens (`docs/design_handoff_helder_app_v2/README.md`, prototype HTML)
The handoff describes the design language as the Blijnder **Kade** design system in its dark (slate) application: IBM Plex Mono + IBM Plex Sans, flat fields, 2px radii, amber as the only accent, no shadows except menus and modals. Tokens as written there (for reference; code values above win): The handoff describes the design language as a dark (slate) design system: IBM Plex Mono + IBM Plex Sans, flat fields, 2px radii, amber as the only accent, no shadows except menus and modals. Tokens as written there (for reference; code values above win):
- **Slate surfaces:** `#101720` page, editor, diff, message field · `#18202B` bars, panels, expanded row, separators · `#1F2834` row hover · `#232C39` rules, hover fills, disabled button · `#2B3544` menu border · `#3A424C` strong rule, button border, unchanged line numbers. - **Slate surfaces:** `#101720` page, editor, diff, message field · `#18202B` bars, panels, expanded row, separators · `#1F2834` row hover · `#232C39` rules, hover fills, disabled button · `#2B3544` menu border · `#3A424C` strong rule, button border, unchanged line numbers.
- **Text:** `#F4F5F4` primary · `#E4E7E6` code · `#BAC0C0` secondary · `#828D9A` muted · `#6C7783` faint. - **Text:** `#F4F5F4` primary · `#E4E7E6` code · `#BAC0C0` secondary · `#828D9A` muted · `#6C7783` faint.
- **Accent:** `#E8913A` amber · `#C4741F` amber-deep (hover) · `#F0B476` amber-soft. - **Accent:** `#E8913A` amber · `#C4741F` amber-deep (hover) · `#F0B476` amber-soft.
- **Status:** Modified `#F0B476`, New `#8FBFB4` (teal), Deleted `#C3A6CE` (lilac), Staged `#E8913A`. Teal and lilac are app-level additions outside core Kade. - **Status:** Modified `#F0B476`, New `#8FBFB4` (teal), Deleted `#C3A6CE` (lilac), Staged `#E8913A`. Teal and lilac are app-level additions outside the core palette.
- **Type:** Plex Mono 400/500/600/700, Plex Sans 400/500/600. Sizes 10, 11, 12, 13, 14px. Label style: 700, tracking .14em, uppercase, written lowercase in brackets in source (e.g. `[ console ] git`). - **Type:** Plex Mono 400/500/600/700, Plex Sans 400/500/600. Sizes 10, 11, 12, 13, 14px. Label style: 700, tracking .14em, uppercase, written lowercase in brackets in source (e.g. `[ console ] git`).
- **Radius:** 2px buttons, badges, inputs; 4px menus; 8px modals. - **Radius:** 2px buttons, badges, inputs; 4px menus; 8px modals.
- **Shadows:** menus `0 4px 16px rgba(16,23,32,.45)`; modals `0 16px 48px rgba(16,23,32,.5)`. - **Shadows:** menus `0 4px 16px rgba(16,23,32,.45)`; modals `0 16px 48px rgba(16,23,32,.5)`.
@@ -1017,7 +1016,6 @@ Views, menus and the key router all call the one entry point `WorkspaceModel.per
| `switchBranch(name, remote)` | | On success, schedule a refresh of the tree and the open files. | | `switchBranch(name, remote)` | | On success, schedule a refresh of the tree and the open files. |
| `submitConsoleInput` | — | Run the Git console line, then refresh the tree and the open files. | | `submitConsoleInput` | — | Run the Git console line, then refresh the tree and the open files. |
| `focusCommitMessage` | — | `openGitView()`: opens the view if it is closed, and in all cases requests focus for the message field. | | `focusCommitMessage` | — | `openGitView()`: opens the view if it is closed, and in all cases requests focus for the message field. |
| `copyCleanCopy` | — | Only while the clean-copy overlay is open: copy its text, dismiss it, show the toast `"Copied"` with the detail `"<N> characters"`. |
| `stopReading` | — | Stop the read-aloud. | | `stopReading` | — | Stop the read-aloud. |
| `openFolder` | — | A project switch (section 2.19): show the system folder picker. On cancel nothing happens. Otherwise open the chosen folder in this window. | | `openFolder` | — | A project switch (section 2.19): show the system folder picker. On cancel nothing happens. Otherwise open the chosen folder in this window. |
| `openRecentProject(path)` | | A project switch to that path. | | `openRecentProject(path)` | | A project switch to that path. |
@@ -1432,7 +1430,6 @@ Left to right:
- `Delete failed` — the path. - `Delete failed` — the path.
- `Copied reference` — the reference. - `Copied reference` — the reference.
- `Copied` — the file name (Copy file name). - `Copied` — the file name (Copy file name).
- `Copied` — `<N> characters` (clean copy).
- `Committed 1 file` / `Committed <N> files` — the commit subject: the trimmed message, cut to 34 characters plus `…` when it is longer. - `Committed 1 file` / `Committed <N> files` — the commit subject: the trimmed message, cut to 34 characters plus `…` when it is longer.
- `Commit failed` — the first error line from git (else the last non-hint output line). - `Commit failed` — the first error line from git (else the last non-hint output line).
- `Pushed <N> commit(s) to origin/<branch>`, or `Pushed to origin/<branch>` when ahead = 0 — no detail. - `Pushed <N> commit(s) to origin/<branch>`, or `Pushed to origin/<branch>` when ahead = 0 — no detail.
@@ -1443,7 +1440,6 @@ Left to right:
- `— Commit or discard <N> file(s) before you switch.` — no detail. - `— Commit or discard <N> file(s) before you switch.` — no detail.
- `Passed to agent` — the reference. - `Passed to agent` — the reference.
- `Nothing to read` — the path, or no detail for a selection. - `Nothing to read` — the path, or no detail for a selection.
- `Nothing to send` (Plak with a blank selection) — no detail.
- "commit(s)" and "file(s)" mean singular when N = 1, else plural. - "commit(s)" and "file(s)" mean singular when N = 1, else plural.
- Stores never toast directly: they call a `notify(title, detail)` hook that the model connects to the toast store. - Stores never toast directly: they call a `notify(title, detail)` hook that the model connects to the toast store.
@@ -1539,10 +1535,9 @@ Shown when the window has no project, once `isReady`. There is no title bar, no
### 2.15 Overlays (OverlayStore, OverlayHost) ### 2.15 Overlays (OverlayStore, OverlayHost)
- **Exactly one overlay at a time. Overlays never stack.** `present(x)` replaces whatever is open, and `dismiss()` sets `.none`. Setting the same value again does nothing and fires no callback. - **Exactly one overlay at a time. Overlays never stack.** `present(x)` replaces whatever is open, and `dismiss()` sets `.none`. Setting the same value again does nothing and fires no callback.
- **Kinds (`Overlay`):** `none`; `search(seed)` (⌘F); `shortcuts` (`?`); `cleanCopy`; `diff(DiffOverlayRequest{path, side?, focusLine?})`; `launcher` (the ⇧⌘O list; the bare-window launcher is **not** an overlay); `recentFiles(initialSelection)`; `passOn(PassOnRequest{reference, code?, anchor})`; `symbol(name)` (⌘-click on a PHP class); `contextMenu(ContextMenuRequest{target, header, entries, anchor})`; `namePrompt(NamePromptRequest{purpose, initialName, anchor})`; `confirm(ConfirmRequest{title, body?, confirmLabel, action})`. - **Kinds (`Overlay`):** `none`; `search(seed)` (⌘F); `shortcuts` (`?`); `diff(DiffOverlayRequest{path, side?, focusLine?})`; `launcher` (the ⇧⌘O list; the bare-window launcher is **not** an overlay); `recentFiles(initialSelection)`; `passOn(PassOnRequest{reference, code?, anchor})`; `symbol(name)` (⌘-click on a PHP class); `contextMenu(ContextMenuRequest{target, header, entries, anchor})`; `namePrompt(NamePromptRequest{purpose, initialName, anchor})`; `confirm(ConfirmRequest{title, body?, confirmLabel, action})`.
- **`onChange(old, new)`** fires on **every** change, however it happened, including when one overlay replaces another: - **`onChange(old, new)`** fires on **every** change, however it happened, including when one overlay replaces another:
- If the old overlay was `diff` → the editor closes the Diff, which gives back the view mode the Diff covered. - If the old overlay was `diff` → the editor closes the Diff, which gives back the view mode the Diff covered.
- If the new overlay is `none` and clean-copy text is pending → open the clean-copy overlay on the next tick. Pending text waits while any other overlay is open.
- **Host:** draws the current overlay over the workspace (and over the Git view). `launcher` is drawn by the shell. `diff`, `passOn` and `symbol` are drawn by the editor's overlay content. The columns behind an overlay show the arrow pointer. - **Host:** draws the current overlay over the workspace (and over the Git view). `launcher` is drawn by the shell. `diff`, `passOn` and `symbol` are drawn by the editor's overlay content. The columns behind an overlay show the arrow pointer.
- **Router view (`OverlayKind`):** `none`, `diff(busy)` (the workspace shortcuts keep working over the Diff unless its own menu or prompt is open), `other` (owns every key except Esc). - **Router view (`OverlayKind`):** `none`, `diff(busy)` (the workspace shortcuts keep working over the Diff unless its own menu or prompt is open), `other` (owns every key except Esc).
- **Sized overlay shell:** a full-window scrim (`#101720` at 72%). A click on it calls dismiss. The card is top-centred, has the given width, and sits 34pt inside the window edges. The card: `panel` background, radius 8, a 1pt `raised` border, overlayShadow. - **Sized overlay shell:** a full-window scrim (`#101720` at 72%). A click on it calls dismiss. The card is top-centred, has the given width, and sits 34pt inside the window edges. The card: `panel` background, radius 8, a 1pt `raised` border, overlayShadow.
@@ -1678,7 +1673,7 @@ Groups in order: Navigate, Agent, Git, File.
- Increase `generation`. - Increase `generation`.
- Build the project services. - Build the project services.
- Set `name` and `title`. Clear the row frames. - Set `name` and `title`. Clear the row frames.
- Build new source-control, Explorer, editor, clean-copy and **terminal** stores, and connect their toast and focus hooks. - Build new source-control, Explorer, editor and **terminal** stores, and connect their toast and focus hooks.
- Rebuild the launcher list. - Rebuild the launcher list.
**`loadProject()`:** **`loadProject()`:**
@@ -1686,7 +1681,7 @@ Groups in order: Navigate, Agent, Git, File.
2. Resolve the config. If the generation changed, stop. Apply the config to the stores. 2. Resolve the config. If the generation changed, stop. Apply the config to the stores.
3. Add the root to the recents (which moves it to the top) and re-read them. If the generation changed, stop. 3. Add the root to the recents (which moves it to the top) and re-read them. If the generation changed, stop.
4. Rebuild the launcher list. 4. Rebuild the launcher list.
5. In parallel: git refresh, tree reload, clean-copy baseline. 5. In parallel: git refresh and tree reload.
6. `editor.restore(restoreSession: config.session.restoreOnLaunch)`. If the generation changed, stop. 6. `editor.restore(restoreSession: config.session.restoreOnLaunch)`. If the generation changed, stop.
7. Start the file watcher, start git polling, and load the PHP class list after **1.5 s**. 7. Start the file watcher, start git polling, and load the PHP class list after **1.5 s**.
@@ -1738,7 +1733,7 @@ Groups in order: Navigate, Agent, Git, File.
7. **Session restore.** behaviour.md §9 says the pane and splitter layout restore only when `session.restoreOnLaunch` is on. In the code the layout always restores; only the open file and its mode depend on that setting. 7. **Session restore.** behaviour.md §9 says the pane and splitter layout restore only when `session.restoreOnLaunch` is on. In the code the layout always restores; only the open file and its mode depend on that setting.
8. **Launch argument.** `start-screen.md` says "a folder path as the first argument". The code uses the first argument that is an existing directory, is not `.`, and does not start with `-`. `HELDER_PROJECT` must be an existing directory, else it is ignored. 8. **Launch argument.** `start-screen.md` says "a folder path as the first argument". The code uses the first argument that is an existing directory, is not `.`, and does not start with `-`. `HELDER_PROJECT` must be an existing directory, else it is ignored.
9. **Open Recent with no window.** `recent-projects.md` says "With no Helder window in front, Open Folder and Open Recent open the project in a new window". In the code the Open Recent submenu reads its list from the key window's workspace, so with no window it always shows `No Recent Projects`. Only Open Folder works in that state. 9. **Open Recent with no window.** `recent-projects.md` says "With no Helder window in front, Open Folder and Open Recent open the project in a new window". In the code the Open Recent submenu reads its list from the key window's workspace, so with no window it always shows `No Recent Projects`. Only Open Folder works in that state.
10. **Missing toasts.** `notifications.md` leaves out the `Nothing to read` and `Nothing to send` toasts. It also does not say that every toast uses the same copy icon, failures included. 10. **Missing toasts.** `notifications.md` leaves out the `Nothing to read` toast. It also does not say that every toast uses the same copy icon, failures included.
11. **Minus sign.** The shortcut catalogue shows Zoom Out as `⌘ −` (U+2212). The menu shortcut is `-`. 11. **Minus sign.** The shortcut catalogue shows Zoom Out as `⌘ −` (U+2212). The menu shortcut is `-`.
12. **Agent column minimum.** `layout.md` says the Claude column is "at least 280 points". A splitter drag enforces 280, but window-narrowing fitting can scale the column below 280 (the fixed columns shrink proportionally so that the editor keeps 280). 12. **Agent column minimum.** `layout.md` says the Claude column is "at least 280 points". A splitter drag enforces 280, but window-narrowing fitting can scale the column below 280 (the fixed columns shrink proportionally so that the editor keeps 280).
@@ -2135,7 +2130,7 @@ Commit does not check `busy`.
| Trigger | What runs | | Trigger | What runs |
|---|---| |---|---|
| Project load | After the config: git refresh, tree and clean-copy baseline, in parallel. Then the editor restore, the watcher, `startPolling()`, and the symbols. | | Project load | After the config: git refresh and tree, in parallel. Then the editor restore, the watcher, `startPolling()`, and the symbols. |
| Watcher **git** event (an entry from 3.2 changed) | The watcher debounces for **0.2 s**, then the model's `scheduleRefresh(.git)`. | | Watcher **git** event (an entry from 3.2 changed) | The watcher debounces for **0.2 s**, then the model's `scheduleRefresh(.git)`. |
| Watcher **project** event (any file in the root, not ignored) | The watcher debounces for **0.25 s**, then `scheduleRefresh([.git, .tree, .symbols, .openFiles])`. | | Watcher **project** event (any file in the root, not ignored) | The watcher debounces for **0.25 s**, then `scheduleRefresh([.git, .tree, .symbols, .openFiles])`. |
| `scheduleRefresh` | Scopes gather into a pending set. One task sleeps for **100 ms** (`refreshDebounce`), runs the gathered scopes (git refresh, tree reload and open-file reload in parallel), then starts again if more were added meanwhile. | | `scheduleRefresh` | Scopes gather into a pending set. One task sleeps for **100 ms** (`refreshDebounce`), runs the gathered scopes (git refresh, tree reload and open-file reload in parallel), then starts again if more were added meanwhile. |
@@ -2787,7 +2782,6 @@ Editor menu entries (no header line):
| always | `Pass on reference` (no selection) or `Pass on selection` (with selection) — spark icon | | always | `Pass on reference` (no selection) or `Pass on selection` (with selection) — spark icon |
| always | `Copy reference` — copy icon | | always | `Copy reference` — copy icon |
| with selection | separator, `Read aloud selection` (Markdown files: the selection's prose with markup removed; if no prose remains, the raw text) | | with selection | separator, `Read aloud selection` (Markdown files: the selection's prose with markup removed; if no prose remains, the raw text) |
| with selection | separator, `Plak` (sends the selected text to the Plak scratchpad app) |
| marked line and Show diff offered | separator, `Show diff` — left/right arrows icon | | marked line and Show diff offered | separator, `Show diff` — left/right arrows icon |
- `Pass on reference/selection` → opens the Pass-on prompt (4.13) at the click; with selection the code is included. - `Pass on reference/selection` → opens the Pass-on prompt (4.13) at the click; with selection the code is included.
@@ -2897,7 +2891,7 @@ From git (other section): per git row (staged or unstaged) a diff of that half;
- Line = that side's line number of the clicked row; a filler half or outside the rows → line 1. Reference = `path:line`. Not available while the pass-on prompt is open. - Line = that side's line number of the clicked row; a filler half or outside the rows → line 1. Reference = `path:line`. Not available while the pass-on prompt is open.
- A menu drawn **inside** the overlay (a second overlay would replace the Diff), at the pointer, kept inside the Diff: x ≤ width − 320 − 8, y ≤ height − (entries × 30 + 60), both ≥ 8. A click outside closes it. - A menu drawn **inside** the overlay (a second overlay would replace the Diff), at the pointer, kept inside the Diff: x ≤ width − 320 − 8, y ≤ height − (entries × 30 + 60), both ≥ 8. A click outside closes it.
- Entries: `Pass on reference`, `Copy reference` (no header, no Show diff, no selection code, no Read aloud, no Plak). The first item is highlighted at open; hover highlights. - Entries: `Pass on reference`, `Copy reference` (no header, no Show diff, no selection code, no Read aloud). The first item is highlighted at open; hover highlights.
- Keys while the menu is open (the canvas forwards them): ↑ / ↓ move the highlight, Enter (return or keypad enter) chooses, Esc closes. All other canvas keys are consumed while the menu is open. - Keys while the menu is open (the canvas forwards them): ↑ / ↓ move the highlight, Enter (return or keypad enter) chooses, Esc closes. All other canvas keys are consumed while the menu is open.
- `Copy reference` → workspace action (clipboard + toast `Copied reference`). - `Copy reference` → workspace action (clipboard + toast `Copied reference`).
- `Pass on reference` → the Pass-on prompt (4.13) drawn inside the Diff, anchored at the menu position. Enter inserts into the agent and shows toast `Passed to agent` with the reference; the prompt closes and focus returns to the canvas. - `Pass on reference` → the Pass-on prompt (4.13) drawn inside the Diff, anchored at the menu position. Enter inserts into the agent and shows toast `Passed to agent` with the reference; the prompt closes and focus returns to the canvas.
@@ -2931,7 +2925,7 @@ From git (other section): per git row (staged or unstaged) a diff of that half;
- Shown when the mode is preview. Read-only, rendered from the **live buffer** (unsaved edits included), re-parsed on every change. Links resolve relative to the file's folder. - Shown when the mode is preview. Read-only, rendered from the **live buffer** (unsaved edits included), re-parsed on every change. Links resolve relative to the file's folder.
- Scrollable; content column max width **580** (about 68 characters), padding top 18, left 20, bottom 48, right 20, left-aligned. Text selectable and copyable; I-beam pointer over text. Background editor colour. Not affected by zoom. - Scrollable; content column max width **580** (about 68 characters), padding top 18, left 20, bottom 48, right 20, left-aligned. Text selectable and copyable; I-beam pointer over text. Background editor colour. Not affected by zoom.
- Right-click anywhere: the editor menu with reference `path:1` and no code (Pass on reference, Copy reference). No Read aloud selection, no Plak, no Show diff. - Right-click anywhere: the editor menu with reference `path:1` and no code (Pass on reference, Copy reference). No Read aloud selection, no Show diff.
#### Block spacing #### Block spacing
@@ -3116,7 +3110,7 @@ The workspace closes the overlay, inserts the text into the agent terminal's inp
### 4.16 Every user-visible string in this section ### 4.16 Every user-visible string in this section
`Too big.` · `No file open` · `Open folder` · `Recent projects` · `Search files & content` · `⌘O` · `⇧⌘O` · `⌘F` · `Unsaved changes` (accessibility) · `+N` · `−N` · `Preview` · `Diff` · `This file cannot be displayed` · `No updated version` · `This file was deleted in the change.` · `Can’t preview this image` · `Image` (status bar language) · `Spaces: N` · `Save changes to <name>?` · `<path> has unsaved edits. They are lost if you close without saving.` · `Save` · `Don’t Save` · `Cancel` · `Saved` · `Save failed` · `Close File` / `Close` (menu) · `Pass on reference` · `Pass on selection` · `Copy reference` · `Read aloud selection` · `Plak` · `Show diff` · `Copied reference` · `Passed to agent` · `Original` · `before` · `Actual` · `after` · `Added` · `Modified` · `Deleted` · `staged → actual` · `HEAD → staged` · `Collapse` · `Esc` · `— No changes to compare.` · `Pass on to agent` · `Add a note (optional)…` · `Inserts` · `↵ insert into agent` · `esc cancel` · `Searching…` · `N reference` / `N references` · `Defined in` · `No declaration in this project` · `extends` / `implements` / `uses` (shown uppercase) · `class` / `interface` / `trait` / `enum` · `Used in` · `—` (list marker, empty alt) · menu items `Actual Size`, `Zoom In`, `Zoom Out`, `Save`, `Refresh`. `Too big.` · `No file open` · `Open folder` · `Recent projects` · `Search files & content` · `⌘O` · `⇧⌘O` · `⌘F` · `Unsaved changes` (accessibility) · `+N` · `−N` · `Preview` · `Diff` · `This file cannot be displayed` · `No updated version` · `This file was deleted in the change.` · `Can’t preview this image` · `Image` (status bar language) · `Spaces: N` · `Save changes to <name>?` · `<path> has unsaved edits. They are lost if you close without saving.` · `Save` · `Don’t Save` · `Cancel` · `Saved` · `Save failed` · `Close File` / `Close` (menu) · `Pass on reference` · `Pass on selection` · `Copy reference` · `Read aloud selection` · `Show diff` · `Copied reference` · `Passed to agent` · `Original` · `before` · `Actual` · `after` · `Added` · `Modified` · `Deleted` · `staged → actual` · `HEAD → staged` · `Collapse` · `Esc` · `— No changes to compare.` · `Pass on to agent` · `Add a note (optional)…` · `Inserts` · `↵ insert into agent` · `esc cancel` · `Searching…` · `N reference` / `N references` · `Defined in` · `No declaration in this project` · `extends` / `implements` / `uses` (shown uppercase) · `class` / `interface` / `trait` / `enum` · `Used in` · `—` (list marker, empty alt) · menu items `Actual Size`, `Zoom In`, `Zoom Out`, `Save`, `Refresh`.
--- ---
@@ -4074,9 +4068,9 @@ Applied to every text just before it is spoken (by `ReadAloudStore.read`). For e
--- ---
## 6. Files, Explorer, watcher, search, recent files, context menus, Plak, Clean Copy, dialogs ## 6. Files, Explorer, watcher, search, recent files, context menus, dialogs
This section covers the project file model and its services, the Explorer column (column B), the file watcher, Search (⌘F), Recent files (⌘↑/⌘↓), every right-click menu, Plak, the Clean Copy popup, and the dialogs that the file actions open. When the code and the docs disagree, the **code** is the rule. The conflicts are listed at the end. This section covers the project file model and its services, the Explorer column (column B), the file watcher, Search (⌘F), Recent files (⌘↑/⌘↓), every right-click menu, and the dialogs that the file actions open. When the code and the docs disagree, the **code** is the rule. The conflicts are listed at the end.
Conventions in this section: Conventions in this section:
- Every path inside the project is **project-relative**, uses `/`, and has no leading slash. `""` is the project root. - Every path inside the project is **project-relative**, uses `/`, and has no leading slash. `""` is the project root.
@@ -4430,25 +4424,23 @@ The process runs in the root folder with no extra environment. Exit 1 ("nothing
| `project` | A project file changed. Also invalidates the symbol index. | **0.25 s** | | `project` | A project file changed. Also invalidates the symbol index. | **0.25 s** |
| `git` | Git state moved. | **0.2 s** | | `git` | Git state moved. | **0.2 s** |
| `config` | `.helder/config.json` changed. | **0.1 s** | | `config` | `.helder/config.json` changed. | **0.1 s** |
| `cleanCopy` | `.clean-copy` in the project root changed. It also counts as a project change. | **0.15 s** (the agent's write is not atomic, so the file is read only after it stopped changing) |
**FSEvents setup:** one stream. Flags: `UseCFTypes | FileEvents | NoDefer`. Since: "now". **Latency 0.05 s** (FSEvents gathers changes for this long before it calls back). Callbacks run on one serial queue (`nl.blijnder.helder.watcher`). `start` first stops any earlier stream, so calling it again moves the watch to the new root. `stop` stops, invalidates and releases the stream, and cancels all pending debounced events. On failure it logs `cannot watch <root>` or `cannot start watching <root>` (category `watch`). **FSEvents setup:** one stream. Flags: `UseCFTypes | FileEvents | NoDefer`. Since: "now". **Latency 0.05 s** (FSEvents gathers changes for this long before it calls back). Callbacks run on one serial queue (`nl.blijnder.helder.watcher`). `start` first stops any earlier stream, so calling it again moves the watch to the new root. `stop` stops, invalidates and releases the stream, and cancels all pending debounced events. On failure it logs `cannot watch <root>` or `cannot start watching <root>` (category `watch`).
**Watched paths:** the **resolved** root (realpath; FSEvents reports `/private/var`, not `/var`; a path that does not exist yet keeps its resolved parent). Also the resolved git directory when it lies **outside** the root (worktrees, submodules). The git directory is `<root>/.git`, or, when `.git` is a **file**, the path after `gitdir:` (trimmed, resolved relative to the root). **Watched paths:** the **resolved** root (realpath; FSEvents reports `/private/var`, not `/var`; a path that does not exist yet keeps its resolved parent). Also the resolved git directory when it lies **outside** the root (worktrees, submodules). The git directory is `<root>/.git`, or, when `.git` is a **file**, the path after `gitdir:` (trimmed, resolved relative to the root).
**Routing one path:** **Routing one path:**
1. If the path, relative to the root, equals `.clean-copy` → schedule `cleanCopy`. This is **in addition to** step 2. 1. Classify the path:
2. Classify the path:
- The flag `MustScanSubDirs` is set (a dropped event batch) → `project`. - The flag `MustScanSubDirs` is set (a dropped event batch) → `project`.
- The path is inside the git directory → `git` only when the relative path equals, or is under, one of: `HEAD`, `index`, `refs/heads`, `refs/remotes`, `logs/HEAD`, `MERGE_HEAD`. Anything else in the git directory → dropped. - The path is inside the git directory → `git` only when the relative path equals, or is under, one of: `HEAD`, `index`, `refs/heads`, `refs/remotes`, `logs/HEAD`, `MERGE_HEAD`. Anything else in the git directory → dropped.
- The path is outside the root, or is the root itself → dropped. - The path is outside the root, or is the root itself → dropped.
- rel == `.helder/config.json` → `config`. - rel == `.helder/config.json` → `config`.
- `isWatchIgnored(rel, exclude: files.exclude)` → dropped. Otherwise → `project`. - `isWatchIgnored(rel, exclude: files.exclude)` → dropped. Otherwise → `project`.
3. Bookkeeping before scheduling: 2. Bookkeeping before scheduling:
- `project`: if it is a rescan, rel is empty, or the basename is `.gitignore` → clear the git-ignore cache and mark the batch as "fire unchecked". Otherwise add rel to the batch's changed paths. - `project`: if it is a rescan, rel is empty, or the basename is `.gitignore` → clear the git-ignore cache and mark the batch as "fire unchecked". Otherwise add rel to the batch's changed paths.
- `git`: clear the git-ignore cache. - `git`: clear the git-ignore cache.
- `config`: re-read `.helder/config.json` (sparse overrides merged with the defaults) to refresh `files.exclude` and `followGitignore`; clear the ignore cache. - `config`: re-read `.helder/config.json` (sparse overrides merged with the defaults) to refresh `files.exclude` and `followGitignore`; clear the ignore cache.
4. Schedule (debounce) the event. 3. Schedule (debounce) the event.
**When `project` fires (`fireProject`):** take and reset the batch. **When `project` fires (`fireProject`):** take and reset the batch.
- If `followGitignore` is false, or the batch is unchecked, or the batch is empty → fire. - If `followGitignore` is false, or the batch is unchecked, or the batch is empty → fire.
@@ -4465,7 +4457,6 @@ The process runs in the root folder with no extra environment. Exit 1 ("nothing
| project | Schedule a refresh of scope {git, tree, symbols, openFiles}. | | project | Schedule a refresh of scope {git, tree, symbols, openFiles}. |
| git | Schedule a refresh of {git}. | | git | Schedule a refresh of {git}. |
| config | Reload the config immediately. | | config | Reload the config immediately. |
| cleanCopy | Run the clean-copy check (section 16). |
**Scheduled refresh:** the scopes are merged into a pending set. One task waits **100 ms** (`refreshDebounce`), then runs the union. If more scopes came in meanwhile, it runs again afterwards. The `symbols` scope invalidates the symbol index and schedules a symbol reload **2000 ms** later (each change restarts this countdown). `tree` → `explorer.reload()`. `git` → git refresh. `openFiles` → the editor checks its open files against the disk. **Scheduled refresh:** the scopes are merged into a pending set. One task waits **100 ms** (`refreshDebounce`), then runs the union. If more scopes came in meanwhile, it runs again afterwards. The `symbols` scope invalidates the symbol index and schedules a symbol reload **2000 ms** later (each change restarts this countdown). `tree` → `explorer.reload()`. `git` → git refresh. `openFiles` → the editor checks its open files against the disk.
@@ -4769,10 +4760,7 @@ The focused column shows its focus only by its amber title and count pill.
| Commit | `checkmark` | plain | | Commit | `checkmark` | plain |
| Commit and push | `arrow.up.to.line` | plain, **emphasised (bold)** | | Commit and push | `arrow.up.to.line` | plain, **emphasised (bold)** |
| Show diff | `arrow.left.arrow.right` | rename (grey) | | Show diff | `arrow.left.arrow.right` | rename (grey) |
| Bouwen | `hammer` | rename (grey) |
| Wait what? | `questionmark.bubble` | rename (grey) |
| Read aloud / Read aloud selection | `speaker.wave.2` | plain | | Read aloud / Read aloud selection | `speaker.wave.2` | plain |
| Plak | `note.text.badge.plus` | plain |
"plain" = text4 at rest, amber when highlighted. "plain" = text4 at rest, amber when highlighted.
@@ -4798,9 +4786,6 @@ The reference = the path. The file name = the basename.
#### 13.2 Explorer folder — no header #### 13.2 Explorer folder — no header
``` ```
(only for a direct child of ontwikkelingen/, except ontwikkelingen/ontwikkeld:)
Bouwen
——
Pass on reference Pass on reference
Copy reference Copy reference
—— ——
@@ -4813,7 +4798,6 @@ Delete folder (destructive)
``` ```
- The reference is the folder path **with a trailing `/`** (e.g. `app/Http/`). - The reference is the folder path **with a trailing `/`** (e.g. `app/Http/`).
- The **Bouwen** rule: the path splits into exactly 2 segments, the first is `ontwikkelingen`, and the second is non-empty and not `ontwikkeld`. Deeper folders do not get it.
#### 13.3 Explorer empty space (project root) — header `<project name>/` #### 13.3 Explorer empty space (project root) — header `<project name>/`
@@ -4839,15 +4823,13 @@ Pass on selection
Copy reference Copy reference
—— ——
Read aloud selection Read aloud selection
——
Plak
``` ```
On a marked (changed) line, when the file offers Show diff, add at the end: On a marked (changed) line, when the file offers Show diff, add at the end:
``` ```
—— ——
Show diff Show diff
``` ```
- Order with a selection on a marked line: Pass on selection, Copy reference, ——, Read aloud selection, ——, Plak, ——, Show diff. - Order with a selection on a marked line: Pass on selection, Copy reference, ——, Read aloud selection, ——, Show diff.
- Show diff applies when the whole row under the pointer is a marked line (a blank line and the space after the text count) and the file offers Show diff (not a new file where every line is marked). It opens the Diff of the open file centred on that line, only if that file is still the active one. - Show diff applies when the whole row under the pointer is a marked line (a blank line and the space after the text count) and the file offers Show diff (not a new file where every line is marked). It opens the Diff of the open file centred on that line, only if that file is still the active one.
- Read aloud selection on a Markdown file reads the selection's prose (Markdown parsed, then turned into plain text). If no prose is left (for example one code block), it reads the raw selection. - Read aloud selection on a Markdown file reads the selection's prose (Markdown parsed, then turned into plain text). If no prose is left (for example one code block), it reads the raw selection.
- The **Markdown preview** and **image** views use the same menu with reference `path:1`, code nil (Pass on reference, Copy reference only). - The **Markdown preview** and **image** views use the same menu with reference `path:1`, code nil (Pass on reference, Copy reference only).
@@ -4881,10 +4863,6 @@ Copy
Paste Paste
—— ——
Read aloud selection Read aloud selection
——
Plak
—— (agent pane only:)
Wait what?
``` ```
Without a selection: Without a selection:
``` ```
@@ -4903,15 +4881,11 @@ Paste
| New file / New folder | Name prompt (section 10). | | | New file / New folder | Name prompt (section 10). | |
| Rename | Name prompt with the current name. | | | Rename | Name prompt with the current name. | |
| Delete | Confirm, then delete (section 10). | | | Delete | Confirm, then delete (section 10). | |
| Bouwen | Inserts `/bouwen <folder name>` into the agent composer, **not submitted**. | `Passed to agent` / `/bouwen <name>` |
| Read aloud (file) | The open, loaded file is read from its **buffer** (unsaved edits included); any other file is read from disk. The Markdown is turned into prose and spoken. A new read replaces the one playing. | `Nothing to read` / `<path>` when there is nothing to read | | Read aloud (file) | The open, loaded file is read from its **buffer** (unsaved edits included); any other file is read from disk. The Markdown is turned into prose and spoken. A new read replaces the one playing. | `Nothing to read` / `<path>` when there is nothing to read |
| Read aloud selection (editor) | Speaks the precomputed text. | — | | Read aloud selection (editor) | Speaks the precomputed text. | — |
| Read aloud selection (terminal) | Selection trimmed; prose of the parsed Markdown, or the raw text if no prose is left. | `Nothing to read` (no detail) when nothing is spoken | | Read aloud selection (terminal) | Selection trimmed; prose of the parsed Markdown, or the raw text if no prose is left. | `Nothing to read` (no detail) when nothing is spoken |
| Plak (editor) | Sends the selected code (trimmed). | `Nothing to send` if blank |
| Plak (terminal) | Fetches the pane's selection when the item runs; sends it trimmed. | `Nothing to send` if blank |
| Copy (terminal) | Copies the pane's selection. | — | | Copy (terminal) | Copies the pane's selection. | — |
| Paste (terminal) | Types the pasteboard text into that pane as a normal paste. Nothing happens with an empty pasteboard. | — | | Paste (terminal) | Types the pasteboard text into that pane as a normal paste. Nothing happens with an empty pasteboard. | — |
| Wait what? | Selection trimmed of whitespace and newlines. If not empty, inserts ``/wait-what `<text>` `` into the agent composer, not submitted. | `Passed to agent` / `/wait-what` |
| Open in editor | Closes the Git view, opens the file. | — | | Open in editor | Closes the Git view, opens the file. | — |
| Show diff | Opens the Diff at the line. | — | | Show diff | Opens the Diff at the line. | — |
@@ -4919,28 +4893,7 @@ Paste
--- ---
### 14. Plak (Plak, SystemActions.sendToPlak) ### 14. Pasteboard and Finder (SystemActions)
Plak is the user's separate macOS scratchpad app. Helder sends text to it through a URL scheme. There is no callback; Helder cannot know whether it worked.
**Rule:**
1. The caller trims the text (whitespace and newlines). If it is empty → toast `Nothing to send` and stop.
2. If the text is **≤ 100 000 UTF-8 bytes** → open `plak://append?text=<encoded>`.
- Build it as a URL with scheme `plak`, host `append`, one query item `text`. Then replace every `+` in the percent-encoded query with `%2B`. Standard query encoding leaves `+` bare, and Plak would read it literally. A space must be `%20`, never `+`. Newline → `%0A`, `&` → `%26`, `#` → `%23`.
- If no URL can be built → log `could not build the append URL` (category `plak`); nothing is sent.
3. If the text is **> 100 000 bytes** → go through the pasteboard:
1. Save every item of the general pasteboard (each type with its data).
2. Put the text on the pasteboard (clear, then set a plain string).
3. Note the pasteboard change count.
4. Open `plak://paste`.
5. **1 second later**: only if the change count is still the same (nothing else was copied in that second): clear the pasteboard and, if there were saved items, write them back.
4. Plak starts if it is not running, shows its window scrolled to the new block, and takes the focus. Helder does not wait for it.
`plak://` contract: an empty or missing `text` adds nothing but still shows Plak. `plak://paste` adds the pasteboard contents (text or images). Plak detects PHP, JSON, XML and CSV as a code block or table; anything else is plain text.
---
### 15. Pasteboard and Finder (SystemActions)
- **copy(text):** clear the general pasteboard, set a plain string. - **copy(text):** clear the general pasteboard, set a plain string.
- **pasteboardText():** the plain string, or nil. - **pasteboardText():** the plain string, or nil.
@@ -4950,48 +4903,16 @@ Plak is the user's separate macOS scratchpad app. Helder sends text to it throug
--- ---
### 16. Clean Copy (CleanCopy, CleanCopyStore, CleanCopyOverlay) ### 15. Overlay rules relevant here
**The channel:** one file, `.clean-copy`, in the project root. The agent overwrites the whole file each time. Helder **only reads** it and never clears or deletes it. Both terminals run with `TERM_PROGRAM=Helder`, so the agent knows it runs inside Helder. The file shows in Git and in the Explorer like any other file. - **Exactly one overlay at a time.** Presenting one replaces the current one. The overlays: none, search, shortcuts, diff, launcher, recentFiles, passOn, symbol, contextMenu, namePrompt, confirm.
**Detection:** the watcher fires `cleanCopy` 0.15 s after the last change to `<root>/.clean-copy`. It also fires `project`.
**Baseline:** on project open, read the file's current text and store it as `lastSeen` (nil when the file is missing). The baseline **never opens** the popup.
**On a change (`fileChanged`):**
1. Read the file. If the read fails (missing or unreadable) → do nothing (lastSeen stays as it was).
2. `isNew` = the text holds more than whitespace and newlines **and** text ≠ lastSeen.
3. Set lastSeen = text (always, even when it is not new).
4. If new → `pending` = text (the newest text replaces older pending text).
5. Only if new, and the project did not switch meanwhile → `showCleanCopy`.
**showCleanCopy:**
- No overlay open → move pending into the popup (text = received = pending; pending cleared) and present the **From Claude** popup.
- The Clean Copy popup is already open → if the user has **not edited** (text == received), take the pending text (the popup shows it). If the user **has** edited, keep the edits and **drop** the new text. In both cases pending is cleared.
- Any other overlay open (search, a dialog, a menu, the Diff, recent files, the pass-on prompt, …) → **wait**. Whenever the overlay becomes `none` and something is pending, `showCleanCopy` runs again on the next main-loop turn. Only the newest text shows.
- The popup opens in that project's window even when the window is in the background. Helder does **not** come to the front.
**Popup layout:** a sized card, width **780**, top-aligned at the 34 pt inset, on the scrim (a click on the scrim closes it without copying). It fills the available height.
- Header (height 50, padding 18, hairline below): a `doc.on.clipboard` icon (amber, 14 light), the title **`From Claude`** (mono bold 14, text1), the detail `.clean-copy` (mono 12, text4), a spacer, then a primary (amber) button `Copy` with a small `⌘↩` keycap (onAmber style), then the `esc` chip.
- Text area: a plain-text editor, mono 14 with line height 23.8, text colour `#E4E7E6`, **amber caret** `#E8913A`, inset 20 × 18, vertical scroller (auto-hide), undo on, no smart quotes or dashes, no spell check or autocorrect. On open it takes the keyboard with the caret at the **end**, scrolled to it. Edits update the store's text.
- Footer (height 34, hairline above, padding 20): `copied as plain text · <n> characters`. n = the character count of the current text (grapheme clusters), live. Mono 11, text4.
**Keys:** ⌘↩ (Return or keypad Enter) = Copy; Esc = close without copying. These are caught before the menu bar sees them.
**Copy:** only while the popup is open: put the current text (with edits) on the pasteboard as plain text, close the popup, toast `Copied` / `<n> characters`.
---
### 17. Overlay rules relevant here
- **Exactly one overlay at a time.** Presenting one replaces the current one. The overlays: none, search, shortcuts, cleanCopy, diff, launcher, recentFiles, passOn, symbol, contextMenu, namePrompt, confirm.
- Esc (no ⌘) closes the open overlay. With none open and the Git view open, Esc closes the Git view. Otherwise it passes to the focused view (the terminal). - Esc (no ⌘) closes the open overlay. With none open and the Git view open, Esc closes the Git view. Otherwise it passes to the focused view (the terminal).
- While any overlay other than the Diff is open, it owns every key except Esc. (Over the Diff, the workspace shortcuts keep working; when the Diff's own menu or prompt is open, they own all keys.) - While any overlay other than the Diff is open, it owns every key except Esc. (Over the Diff, the workspace shortcuts keep working; when the Diff's own menu or prompt is open, they own all keys.)
- With an overlay open, everything behind it shows the arrow pointer. - With an overlay open, everything behind it shows the arrow pointer.
--- ---
### 18. Doc-versus-code conflicts (code wins) ### 16. Doc-versus-code conflicts (code wins)
| # | Topic | Docs say | Code does | | # | Topic | Docs say | Code does |
|---|---|---|---| |---|---|---|---|
@@ -5008,9 +4929,8 @@ Plak is the user's separate macOS scratchpad app. Helder sends text to it throug
| 11 | Project column empty state | "No content matches." when nothing matches. | It also shows during the 120 ms debounce, before results arrive. | | 11 | Project column empty state | "No content matches." when nothing matches. | It also shows during the 120 ms debounce, before results arrive. |
| 12 | Context-menu height estimate | — | The main overlay estimates 34 pt per entry; the Diff menu estimates 30 pt per entry (only affects clamping near the window edge). | | 12 | Context-menu height estimate | — | The main overlay estimates 34 pt per entry; the Diff menu estimates 30 pt per entry (only affects clamping near the window edge). |
| 13 | right-click-menu.md "Copy file name and Show in Finder have an amber icon" | amber | The tint is amberSoft `#F0B476` (`menuIconModify`), not the main amber. | | 13 | right-click-menu.md "Copy file name and Show in Finder have an amber icon" | amber | The tint is amberSoft `#F0B476` (`menuIconModify`), not the main amber. |
| 14 | Clean copy toast (clean-copy.md) | The toast says "Copied". | Title `Copied`, detail `<n> characters`. | | 14 | Name prompt validation (dialogs.md) | A rename refuses a name with `/`. | Trailing slashes are stripped first, so `name/` is accepted as `name`. New file/folder accept inner slashes and create the folders. |
| 15 | Name prompt validation (dialogs.md) | A rename refuses a name with `/`. | Trailing slashes are stripped first, so `name/` is accepted as `name`. New file/folder accept inner slashes and create the folders. | | 15 | `followGitignore` with no ripgrep | Docs: hides git-ignored files from the tree. | The tree's walk fallback never honours it. Only the walk **search and file list** (via `git ls-files`) do. |
| 16 | `followGitignore` with no ripgrep | Docs: hides git-ignored files from the tree. | The tree's walk fallback never honours it. Only the walk **search and file list** (via `git ls-files`) do. |
--- ---
@@ -5148,19 +5068,16 @@ No header line. Entries, in order (separators shown as `—`):
| Situation | Entries | | Situation | Entries |
|---|---| |---|---|
| Shell pane, with selection | **Copy**, **Paste**, —, **Read aloud selection**, —, **Plak** | | Either pane, with selection | **Copy**, **Paste**, —, **Read aloud selection** |
| Agent pane, with selection | **Copy**, **Paste**, —, **Read aloud selection**, —, **Plak**, —, **Wait what?** |
| Either pane, no selection | **Paste** | | Either pane, no selection | **Paste** |
Icons (SF Symbol names) and tint: Copy `doc.on.doc` plain; Paste `doc.on.clipboard` plain; Read aloud selection `speaker.wave.2` plain; Plak `note.text.badge.plus` plain; Wait what? `questionmark.bubble`, "rename" tint (the amber pass-on accent group). Icons (SF Symbol names) and tint: Copy `doc.on.doc` plain; Paste `doc.on.clipboard` plain; Read aloud selection `speaker.wave.2` plain.
| Action | Exact behaviour | | Action | Exact behaviour |
|---|---| |---|---|
| Copy | If the pane has a non-empty selection, put it on the pasteboard. | | Copy | If the pane has a non-empty selection, put it on the pasteboard. |
| Paste | Read the pasteboard text; if non-empty, call the pane's clipboard-style paste (bracketed only if the program asked for it; see 7.3). For the agent pane, marks the composer as holding text. | | Paste | Read the pasteboard text; if non-empty, call the pane's clipboard-style paste (bracketed only if the program asked for it; see 7.3). For the agent pane, marks the composer as holding text. |
| Read aloud selection | Take the selection, trim whitespace/newlines; convert Markdown to plain prose (markup removed). If the prose is empty, speak the raw trimmed text instead. If nothing could be read (blank), toast **"Nothing to read"**. | | Read aloud selection | Take the selection, trim whitespace/newlines; convert Markdown to plain prose (markup removed). If the prose is empty, speak the raw trimmed text instead. If nothing could be read (blank), toast **"Nothing to read"**. |
| Plak | Take the selection (or ""), trim whitespace/newlines; if blank, toast **"Nothing to send"**; else send to the Plak app (`plak://append?text=…` with `+` encoded as `%2B`, or via the pasteboard + `plak://paste` above 100 000 UTF-8 bytes). |
| Wait what? | Agent pane only. Take the selection, trim; if non-empty, pass to the agent the text `` /wait-what `<trimmed selection>` `` (slash command, selection in single backticks) using the normal pass-on path (bracketed paste, not submitted) and show toast **"Passed to agent"** with detail **`/wait-what`**. If blank, nothing happens. |
--- ---
@@ -5201,9 +5118,9 @@ Examples: `a.php:3`; `fix this => a.php:3`; `why a.php:3-4\n```\nx\ny\n```` .
2. Send `BracketedPaste.wrap(text, composerHasText: agentComposerHasText)` to the agent pane. This ALWAYS uses bracketed markers, regardless of whether the program enabled bracketed paste mode. If the agent process is not running, the bytes are dropped silently. 2. Send `BracketedPaste.wrap(text, composerHasText: agentComposerHasText)` to the agent pane. This ALWAYS uses bracketed markers, regardless of whether the program enabled bracketed paste mode. If the agent process is not running, the bytes are dropped silently.
3. Set `agentComposerHasText = true`. 3. Set `agentComposerHasText = true`.
4. The agent pane takes the keyboard (first responder). 4. The agent pane takes the keyboard (first responder).
5. The model shows toast **"Passed to agent"** with the reference (or command) as its mono detail line. The toast is shown even when no agent pane/process exists. 5. The model shows toast **"Passed to agent"** with the reference as its mono detail line. The toast is shown even when no agent pane/process exists.
Pass-on sources that use this path: the pass-on prompt (`.passToAgent(text, reference)`, which first dismisses the overlay), the Diff's own pass-on prompt, the Explorer "Bouwen" item (`/bouwen <folder name>`, toast detail `/bouwen <folder name>`), and "Wait what?". Pass-on sources that use this path: the pass-on prompt (`.passToAgent(text, reference)`, which first dismisses the overlay) and the Diff's own pass-on prompt.
#### Composer tracking (agentComposerHasText) #### Composer tracking (agentComposerHasText)
@@ -5351,7 +5268,7 @@ Generated `config.default.json` (current code, keys sorted):
- `name` = the root folder's last path component (or the full path if that is empty). Used in recents, Explorer header, focus flash. - `name` = the root folder's last path component (or the full path if that is empty). Used in recents, Explorer header, focus flash.
- `title` = `APP_NAME` from `<root>/.env` (read as UTF-8; unreadable/missing → none), else `name`. - `title` = `APP_NAME` from `<root>/.env` (read as UTF-8; unreadable/missing → none), else `name`.
- `APP_NAME` parsing: split the file into lines; for each line strip leading spaces/tabs; skip lines starting with `#`; the line must start with `APP_NAME`, then optional spaces/tabs, then `=`; the value is everything after `=`. The LAST matching line wins. The value is trimmed of spaces; if it is at least 2 chars and starts and ends with the same quote (`"` or `'`), the quotes are removed; trimmed again; empty → none. No escape handling, no `export` prefix support, inline `# comments` are kept as part of the value. - `APP_NAME` parsing: split the file into lines; for each line strip leading spaces/tabs; skip lines starting with `#`; the line must start with `APP_NAME`, then optional spaces/tabs, then `=`; the value is everything after `=`. The LAST matching line wins. The value is trimmed of spaces; if it is at least 2 chars and starts and ends with the same quote (`"` or `'`), the quotes are removed; trimmed again; empty → none. No escape handling, no `export` prefix support, inline `# comments` are kept as part of the value.
- Examples: `APP_NAME="Loopt Shop"` → `Loopt Shop`; `APP_NAME='x'` → `x`; `# APP_NAME=nope\nAPP_NAME=` → none. - Examples: `APP_NAME="Demo Shop"` → `Demo Shop`; `APP_NAME='x'` → `x`; `# APP_NAME=nope\nAPP_NAME=` → none.
- The title is computed when a project attaches (not live on `.env` change). It becomes the window title (title text hidden in the custom title bar) and the process display name (Dock, ⌘Tab, Mission Control) through a private LaunchServices rename; the launcher (no project) uses `Helder`; when the last window closes the name goes back to `Helder`. The Dock menu shows the title as a disabled first item, a separator, then **New Window**. Initial `title` before any project is `Helder`. - The title is computed when a project attaches (not live on `.env` change). It becomes the window title (title text hidden in the custom title bar) and the process display name (Dock, ⌘Tab, Mission Control) through a private LaunchServices rename; the launcher (no project) uses `Helder`; when the last window closes the name goes back to `Helder`. The Dock menu shows the title as a disabled first item, a separator, then **New Window**. Initial `title` before any project is `Helder`.
- If the LaunchServices calls are missing: log warn scope `app` `LaunchServices rename calls not found; the app keeps its name`; a failed rename logs `could not rename the app to <name>: <status>`. - If the LaunchServices calls are missing: log warn scope `app` `LaunchServices rename calls not found; the app keeps its name`; a failed rename logs `could not rename the app to <name>: <status>`.
@@ -5378,7 +5295,7 @@ Title from model; title hidden; transparent title bar; full-size content; not mo
#### `attach(root)` (construction with a root, and every project switch) #### `attach(root)` (construction with a root, and every project switch)
Increment `generation` (lets stale async work detect a switch); build per-project services; set `name` and `title`; clear Explorer row frames; create SourceControlStore (wired to toasts and commit-message focus), ExplorerStore, EditorStore (wired to overlays, toasts, file-saved → git refresh, unsaved prompt, symbols), CleanCopyStore, a NEW TerminalStore for the root (not yet configured → panes wait), wire the terminal right-click menu; rebuild the launcher list. Increment `generation` (lets stale async work detect a switch); build per-project services; set `name` and `title`; clear Explorer row frames; create SourceControlStore (wired to toasts and commit-message focus), ExplorerStore, EditorStore (wired to overlays, toasts, file-saved → git refresh, unsaved prompt, symbols), a NEW TerminalStore for the root (not yet configured → panes wait), wire the terminal right-click menu; rebuild the launcher list.
#### `loadProject()` order #### `loadProject()` order
@@ -5386,7 +5303,7 @@ Increment `generation` (lets stale async work detect a switch); build per-projec
2. Resolve config (writes `.helder` files). If the project changed meanwhile, stop. 2. Resolve config (writes `.helder` files). If the project changed meanwhile, stop.
3. `applyConfig()` → this configures the terminal store, so both panes spawn now. 3. `applyConfig()` → this configures the terminal store, so both panes spawn now.
4. Add root to recent projects; reload the list. Stop if the project changed. 4. Add root to recent projects; reload the list. Stop if the project changed.
5. In parallel: git refresh, Explorer tree reload, `.clean-copy` baseline load. Await all. 5. In parallel: git refresh and Explorer tree reload. Await all.
6. Editor session restore (honours `session.restoreOnLaunch`). Stop if the project changed. 6. Editor session restore (honours `session.restoreOnLaunch`). Stop if the project changed.
7. Start the file watcher on the root. 7. Start the file watcher on the root.
8. Start git polling every `git.refreshInterval` ms (none if ≤ 0). Each poll: sleep interval, then refresh git; loop. 8. Start git polling every `git.refreshInterval` ms (none if ≤ 0). Each poll: sleep interval, then refresh git; loop.
@@ -5399,7 +5316,6 @@ Increment `generation` (lets stale async work detect a switch); build per-projec
| Watcher `project` event (debounce 250 ms in the watcher) | Scheduled refresh of git + tree + symbols + open files. | | Watcher `project` event (debounce 250 ms in the watcher) | Scheduled refresh of git + tree + symbols + open files. |
| Watcher `git` event (debounce 200 ms) | Scheduled refresh of git. | | Watcher `git` event (debounce 200 ms) | Scheduled refresh of git. |
| Watcher `config` event (debounce 100 ms) | `reloadConfig()` immediately (not scheduled). | | Watcher `config` event (debounce 100 ms) | `reloadConfig()` immediately (not scheduled). |
| Watcher `cleanCopy` event (debounce 150 ms) | Clean-copy handling. |
| File saved in editor | Scheduled git refresh. | | File saved in editor | Scheduled git refresh. |
| Pull, branch switch, git console command | Scheduled tree + open-files refresh. | | Pull, branch switch, git console command | Scheduled tree + open-files refresh. |
| Git poll timer | Git refresh. | | Git poll timer | Git refresh. |
@@ -5476,7 +5392,7 @@ Open Folder / Open Recent with no key window open the choice in a NEW process in
### 7.12 Doc-vs-code conflicts (code wins) ### 7.12 Doc-vs-code conflicts (code wins)
1. **Terminal right-click menu.** `docs/guide/claude-code.md`, `command-line.md` and `docs/architecture.md` (Terminals) say the menu holds only Copy and Paste. Code also has Read aloud selection, Plak, and (agent only) Wait what? — as `docs/behaviour.md` §7 correctly describes. 1. **Terminal right-click menu.** `docs/guide/claude-code.md`, `command-line.md` and `docs/architecture.md` (Terminals) say the menu holds only Copy and Paste. Code also has Read aloud selection — as `docs/behaviour.md` §7 correctly describes.
2. **Keyboard after a pass.** `pass-on-to-agent.md` says "The keyboard stays where it was". Code moves first responder to the agent pane on every send (as `claude-code.md` says). 2. **Keyboard after a pass.** `pass-on-to-agent.md` says "The keyboard stays where it was". Code moves first responder to the agent pane on every send (as `claude-code.md` says).
3. **Pane headers.** `behaviour.md` §6 says the agent pane has a `claude` header with an `agent session` label, §7 says the shell pane has a header with shell name and path. Code: no header on either pane (guides agree with code). 3. **Pane headers.** `behaviour.md` §6 says the agent pane has a `claude` header with an `agent session` label, §7 says the shell pane has a header with shell name and path. Code: no header on either pane (guides agree with code).
4. **Settings read only at open.** `configuration.md` says `ai.command`, `ai.autoLaunch`, `terminal.shell` and `git.refreshInterval` apply only when the project is reopened. Code: the three launch settings apply at the next spawn, including restart-after-exit (any key); `git.refreshInterval` restarts the running poll immediately on config change. 4. **Settings read only at open.** `configuration.md` says `ai.command`, `ai.autoLaunch`, `terminal.shell` and `git.refreshInterval` apply only when the project is reopened. Code: the three launch settings apply at the next spawn, including restart-after-exit (any key); `git.refreshInterval` restarts the running poll immediately on config change.
@@ -5531,7 +5447,7 @@ All fakes keep their state behind a lock (`Locked<Value>`: a value behind an `NS
| `FakeSession` | `SessionStoring` | Sessions per root and the global agent-split layout, in memory instead of UserDefaults. | `sessions`, `layout` | | `FakeSession` | `SessionStoring` | Sessions per root and the global agent-split layout, in memory instead of UserDefaults. | `sessions`, `layout` |
| `FakeSpeech` | `SpeechServicing` | Speech; `finish()` plays the voice reaching the end (calls `onFinish`). | `spoken` texts, `stops` count | | `FakeSpeech` | `SpeechServicing` | Speech; `finish()` plays the voice reaching the end (calls `onFinish`). | `spoken` texts, `stops` count |
| `FakeSymbols` | `SymbolServicing` | Declared PHP class names and lookups set by the test; an unknown lookup returns an empty lookup for that name. | `invalidations`, `nameLoads` | | `FakeSymbols` | `SymbolServicing` | Declared PHP class names and lookups set by the test; an unknown lookup returns an empty lookup for that name. | `invalidations`, `nameLoads` |
| `FakeSystem` | `SystemActing` | Dialogs, pasteboard and Finder. `chosenFolder` is what the folder picker returns; `unsavedCloseChoice` is the answer to the "unsaved changes" question (default cancel); `clipboard` is the pasteboard text. | `copied`, `revealed` (Finder URLs), `plakked` (text sent to Plak), `unsavedCloseQuestions` (paths asked), `newInstances` (folder per "open new instance" call, nil = launcher). `openLog` and `revealLog` do nothing. | | `FakeSystem` | `SystemActing` | Dialogs, pasteboard and Finder. `chosenFolder` is what the folder picker returns; `unsavedCloseChoice` is the answer to the "unsaved changes" question (default cancel); `clipboard` is the pasteboard text. | `copied`, `revealed` (Finder URLs), `unsavedCloseQuestions` (paths asked), `newInstances` (folder per "open new instance" call, nil = launcher). `openLog` and `revealLog` do nothing. |
| `FakeTerminal` | `TerminalSessionHandle` | A terminal pane without a PTY. `selectedText` is settable. | `sent` texts, `starts` (launch + argv0), `terminations`, `pasted` | | `FakeTerminal` | `TerminalSessionHandle` | A terminal pane without a PTY. `selectedText` is settable. | `sent` texts, `starts` (launch + argv0), `terminations`, `pasted` |
| `FakeWatcher` | `FileWatching` | A file watcher the test fires by hand with `emit(event)`. | `root` it was started on, `stopped` | | `FakeWatcher` | `FileWatching` | A file watcher the test fires by hand with `emit(event)`. | `root` it was started on, `stopped` |
@@ -5601,8 +5517,8 @@ All fakes keep their state behind a lock (`Locked<Value>`: a value behind an `NS
#### Config / ProjectTitleTests #### Config / ProjectTitleTests
- `readsAppNameAndStripsQuotes`: from `.env` text `APP_ENV=local\nAPP_NAME="Loopt Shop"\n` the app name is `Loopt Shop`; from `APP_NAME='x'` it is `x`. - `readsAppNameAndStripsQuotes`: from `.env` text `APP_ENV=local\nAPP_NAME="Demo Shop"\n` the app name is `Demo Shop`; from `APP_NAME='x'` it is `x`.
- `ignoresCommentsAndEmptyValues`: `# APP_NAME=nope\nAPP_NAME=` gives no app name (nil). The title for folder `odynt` with no `.env` contents is `odynt`. - `ignoresCommentsAndEmptyValues`: `# APP_NAME=nope\nAPP_NAME=` gives no app name (nil). The title for folder `demo` with no `.env` contents is `demo`.
#### Diff / DiffViewsTests (`DiffViews.actual` over `LineDiff.build(..., status: modified)`) #### Diff / DiffViewsTests (`DiffViews.actual` over `LineDiff.build(..., status: modified)`)
@@ -5648,10 +5564,8 @@ All fakes keep their state behind a lock (`Locked<Value>`: a value behind an `NS
#### Files / ContextActionsTests, suite TerminalContextMenuTests #### Files / ContextActionsTests, suite TerminalContextMenuTests
- `copyAppearsOnlyWithASelection`: terminal agent with selection: labels `Copy`, `Paste`, `Read aloud selection`, `Plak`, `Wait what?`. Terminal shell without selection: only `Paste`. - `copyAppearsOnlyWithASelection`: terminal agent with selection: labels `Copy`, `Paste`, `Read aloud selection`. Terminal shell without selection: only `Paste`.
- `waitWhatAppearsOnlyForASelectionInTheAgentPane`: agent without selection has no `Wait what?`; shell with selection has no `Wait what?`. - `theActionsNameTheirPane`: shell with selection gives exactly: action copyTerminalSelection(shell) `Copy`, action pasteIntoTerminal(shell) `Paste`, separator, action readAloudTerminalSelection(shell) `Read aloud selection`.
- `theActionsNameTheirPane`: shell with selection gives exactly: action copyTerminalSelection(shell) `Copy`, action pasteIntoTerminal(shell) `Paste`, separator, action readAloudTerminalSelection(shell) `Read aloud selection`, separator, action plakTerminalSelection(shell) `Plak`.
- `plakAppearsOnlyWithASelectionInBothPanes`: `Plak` present for agent and shell with selection; absent for both without.
- `readAloudAppearsOnlyWithASelection`: `Read aloud selection` absent for agent and shell without selection. - `readAloudAppearsOnlyWithASelection`: `Read aloud selection` absent for agent and shell without selection.
- `theMenuHasNoHeader`: the header for a terminal menu (agent, no selection) and for a directory `src` (project `app`) is empty. - `theMenuHasNoHeader`: the header for a terminal menu (agent, no selection) and for a directory `src` (project `app`) is empty.
@@ -5662,26 +5576,16 @@ All fakes keep their state behind a lock (`Locked<Value>`: a value behind an `NS
- `aMarkedLineEndsWithShowDiffAtThatLine`: editor target, no code, show-diff line 12: entries exactly passOnReference(`src/a.php:12`, code nil) `Pass on reference`, copyReference(`src/a.php:12`) `Copy reference`, separator, showDiff(`src/a.php`, line 12) `Show diff`. - `aMarkedLineEndsWithShowDiffAtThatLine`: editor target, no code, show-diff line 12: entries exactly passOnReference(`src/a.php:12`, code nil) `Pass on reference`, copyReference(`src/a.php:12`) `Copy reference`, separator, showDiff(`src/a.php`, line 12) `Show diff`.
- `anUnchangedLineHasNoShowDiff`: editor target with no show-diff line: only `Pass on reference` and `Copy reference` (same actions as above), no separator. - `anUnchangedLineHasNoShowDiff`: editor target with no show-diff line: only `Pass on reference` and `Copy reference` (same actions as above), no separator.
#### Files / ContextActionsTests, suite BouwenContextMenuTests
- `anOntwikkelingFolderStartsWithBouwen`: directory `ontwikkelingen/2026-10-02-001-x`: the first three entries are bouwen(`2026-10-02-001-x`) `Bouwen`, separator, passOnReference(`ontwikkelingen/2026-10-02-001-x/`, nil) `Pass on reference` (directory references end with `/`).
- `otherPathsHaveNoBouwen`: no Bouwen entry for directory `ontwikkelingen`, directory `ontwikkelingen/ontwikkeld`, directory `ontwikkelingen/a/b`, directory `src/ontwikkelingen/a`, or file `ontwikkelingen/a`. (Only a direct child folder of top-level `ontwikkelingen`, other than `ontwikkeld`.)
#### Files / ContextActionsTests, suite ReadAloudContextMenuTests #### Files / ContextActionsTests, suite ReadAloudContextMenuTests
- `aMarkdownFileCanBeReadAloud`: for file `docs/guide.md`, entries at positions 4, 5, 6 are separator, readAloudFile(`docs/guide.md`) `Read aloud`, separator. - `aMarkdownFileCanBeReadAloud`: for file `docs/guide.md`, entries at positions 4, 5, 6 are separator, readAloudFile(`docs/guide.md`) `Read aloud`, separator.
- `otherFilesCannot`: file `src/app.php` and directory `docs` have no read-aloud entry. - `otherFilesCannot`: file `src/app.php` and directory `docs` have no read-aloud entry.
- `aGitRowOpensInTheEditorThenPassesOnItsPath`: git row `src/a.php` (not deleted): exactly openFile(`src/a.php`) `Open in editor`, separator, passOnReference(`src/a.php`, nil) `Pass on reference`, copyReference(`src/a.php`) `Copy reference`. Git row `gone.php` (deleted): only `Pass on reference` and `Copy reference`. The openFile action is emphasized (bold). - `aGitRowOpensInTheEditorThenPassesOnItsPath`: git row `src/a.php` (not deleted): exactly openFile(`src/a.php`) `Open in editor`, separator, passOnReference(`src/a.php`, nil) `Pass on reference`, copyReference(`src/a.php`) `Copy reference`. Git row `gone.php` (deleted): only `Pass on reference` and `Copy reference`. The openFile action is emphasized (bold).
- `theCommitMenuOffersCommitAndABoldCommitAndPush`: commit-menu header is the empty string; entries exactly commit(andPush false) `Commit`, commit(andPush true) `Commit and push`; commit-and-push is emphasized, plain commit is not. - `theCommitMenuOffersCommitAndABoldCommitAndPush`: commit-menu header is the empty string; entries exactly commit(andPush false) `Commit`, commit(andPush true) `Commit and push`; commit-and-push is emphasized, plain commit is not.
- `aSelectionCanBeReadAloudAfterCopyReference`: reference `src/a.php` lines 3-4, code `$a = 1;`, show-diff line 3: exactly passOnReference(`src/a.php:3-4`, code `$a = 1;`) `Pass on selection`, copyReference(`src/a.php:3-4`) `Copy reference`, separator, readAloudText(`$a = 1;`) `Read aloud selection`, separator, plak(`$a = 1;`) `Plak`, separator, showDiff(`src/a.php`, line 3) `Show diff`. - `aSelectionCanBeReadAloudAfterCopyReference`: reference `src/a.php` lines 3-4, code `$a = 1;`, show-diff line 3: exactly passOnReference(`src/a.php:3-4`, code `$a = 1;`) `Pass on selection`, copyReference(`src/a.php:3-4`) `Copy reference`, separator, readAloudText(`$a = 1;`) `Read aloud selection`, separator, showDiff(`src/a.php`, line 3) `Show diff`.
- `noSelectionNoReadAloud`: editor on `README.md` line 1 with code nil or empty has no read-aloud entry. - `noSelectionNoReadAloud`: editor on `README.md` line 1 with code nil or empty has no read-aloud entry.
- `selectedMarkdownIsReadAsProse`: selected `## Setup\nRun **this**` in `README.md` gives exactly one entry readAloudText(`Setup.\nRun this.`) `Read aloud selection`. Selected "```\nls\n```" gives readAloudText with the text unchanged ("```\nls\n```"). - `selectedMarkdownIsReadAsProse`: selected `## Setup\nRun **this**` in `README.md` gives exactly one entry readAloudText(`Setup.\nRun this.`) `Read aloud selection`. Selected "```\nls\n```" gives readAloudText with the text unchanged ("```\nls\n```").
#### Files / ContextActionsTests, suite PlakContextMenuTests
- `anEditorSelectionIsSentAsRawCode`: selected `## Setup\nRun **this**` gives exactly plak(`## Setup\nRun **this**`) `Plak` (raw, not prose).
- `noSelectionNoPlak`: code nil or empty gives no Plak entry.
#### Files / FileLimitsTests #### Files / FileLimitsTests
- `binary`: bytes `00 01 02` look binary; `plain text` does not; 8000 bytes of `A` followed by a NUL does not (only the first 8000 bytes are checked). - `binary`: bytes `00 01 02` look binary; `plain text` does not; 8000 bytes of `A` followed by a NUL does not (only the first 8000 bytes are checked).
@@ -5736,15 +5640,6 @@ All fakes keep their state behind a lock (`Locked<Value>`: a value behind an `NS
- `ripgrepArgumentsHonourTheConfig`: exclude `*.log`, base `node_modules` give `["--glob", "!node_modules", "--glob", "!*.log", "--no-ignore"]`. - `ripgrepArgumentsHonourTheConfig`: exclude `*.log`, base `node_modules` give `["--glob", "!node_modules", "--glob", "!*.log", "--no-ignore"]`.
- `pathHelpers`: ancestors of `a/b/c.txt` are `a`, `a/b`; remapping `a/b/c.txt` from folder `a/b` to `a/x` gives `a/x/c.txt`; validated name of `" ../ "` is nil; validated name of `new.md/` is `new.md`. - `pathHelpers`: ancestors of `a/b/c.txt` are `a`, `a/b`; remapping `a/b/c.txt` from folder `a/b` to `a/x` gives `a/x/c.txt`; validated name of `" ../ "` is nil; validated name of `new.md/` is `new.md`.
#### Files / PlakTests
- `spacesAndNewlinesArePercentEncoded`: the append URL query for `a b\nc` is `a%20b%0Ac`.
- `ampersandPlusAndHashAreEncoded`: `a&b+c#d` encodes as `a%26b%2Bc%23d`.
- `theURLTargetsAppend`: append URL for `x` is `plak://append?text=x`; the paste URL is `plak://paste`.
- `shortTextIsAppended`: delivery for `hi` is append with URL `plak://append?text=hi`; text of exactly the append limit (100,000) is not delivered by paste.
- `textOverTheLimitGoesThroughThePasteboard`: text of limit + 1 characters is delivered by paste (pasteboard + `plak://paste`).
- `theLimitCountsUTF8Bytes`: `é` repeated limit/2 + 1 times (over 100,000 UTF-8 bytes) is delivered by paste.
#### Git / GitBranchesTests #### Git / GitBranchesTests
- `parse`: the refs list `refs/heads/main`, `refs/heads/feature/b`, `refs/heads/feature/a`, `refs/remotes/origin/HEAD`, `refs/remotes/origin/main`, `refs/remotes/origin/feature/c`, `refs/remotes/upstream/main` (plus trailing blank line) gives local `feature/a`, `feature/b`, `main` and remote `origin/feature/c`, `origin/main` (sorted; only `origin`; `origin/HEAD` dropped). - `parse`: the refs list `refs/heads/main`, `refs/heads/feature/b`, `refs/heads/feature/a`, `refs/remotes/origin/HEAD`, `refs/remotes/origin/main`, `refs/remotes/origin/feature/c`, `refs/remotes/upstream/main` (plus trailing blank line) gives local `feature/a`, `feature/b`, `main` and remote `origin/feature/c`, `origin/main` (sorted; only `origin`; `origin/HEAD` dropped).
@@ -6141,10 +6036,9 @@ Block kinds: heading(level, content), paragraph, code(language, text), list(orde
#### Files / FSEventsWatcherTests (real FSEvents, run one at a time) #### Files / FSEventsWatcherTests (real FSEvents, run one at a time)
Setup for each: the watcher uses debounces project 0.3 s, git 0.2 s, config 0.1 s. After `start(root)` the test waits 0.6 s and clears the event log, so setup writes do not leak in. "Settle" = wait 1 s. Event kinds: `project`, `git`, `config`, `cleanCopy`. Setup for each: the watcher uses debounces project 0.3 s, git 0.2 s, config 0.1 s. After `start(root)` the test waits 0.6 s and clears the event log, so setup writes do not leak in. "Settle" = wait 1 s. Event kinds: `project`, `git`, `config`.
- `aBurstOfProjectChangesFiresOneDebouncedEvent`: writing `src/file0.txt` ... `src/file4.txt` eventually gives at least one project event; after settling there is exactly 1 project event and 0 git events. - `aBurstOfProjectChangesFiresOneDebouncedEvent`: writing `src/file0.txt` ... `src/file4.txt` eventually gives at least one project event; after settling there is exactly 1 project event and 0 git events.
- `theCleanCopyFileFiresItsOwnEventNextToTheProjectEvent`: writing `notes/.clean-copy` (a nested file of that name) gives 0 cleanCopy events after settling. Writing the clean-copy file at the root (`CleanCopy.fileName`, i.e. `.clean-copy`) with `copy me` eventually gives a cleanCopy event and a project event.
- `changesInsideIgnoredFoldersAreDropped`: with `node_modules/pkg` and `vendor` existing, writing `node_modules/pkg/index.js`, `vendor/autoload.php` and `.helder/recent.json` gives 0 project events. - `changesInsideIgnoredFoldersAreDropped`: with `node_modules/pkg` and `vendor` existing, writing `node_modules/pkg/index.js`, `vendor/autoload.php` and `.helder/recent.json` gives 0 project events.
- `theConfigFileFiresAConfigEventOnly`: with `.helder` existing, writing `.helder/config.json` (`{"editor":{"tabSize":2}}`) eventually gives exactly 1 config event, and after settling 0 project events. - `theConfigFileFiresAConfigEventOnly`: with `.helder` existing, writing `.helder/config.json` (`{"editor":{"tabSize":2}}`) eventually gives exactly 1 config event, and after settling 0 project events.
- `aCommitFiresAGitEvent`: in a temp repo with one commit, an empty commit `second` eventually gives a git event. - `aCommitFiresAGitEvent`: in a temp repo with one commit, an empty commit `second` eventually gives a git event.
@@ -6657,7 +6551,7 @@ Icon tints: add (teal), modify (amber soft), rename (grey), plain (no colour; am
- `addingActionsAreTeal`: new file and new folder -> add. - `addingActionsAreTeal`: new file and new folder -> add.
- `finderAndCopyFileNameAreAmberSoft`: reveal in Finder and copy file name -> modify. - `finderAndCopyFileNameAreAmberSoft`: reveal in Finder and copy file name -> modify.
- `passOnShowDiffAndRenameAreGrey`: pass on reference, pass on file name, bouwen, show diff, rename -> rename. - `passOnShowDiffAndRenameAreGrey`: pass on reference, pass on file name, show diff, rename -> rename.
- `theGitViewItemsKeepThePlainIcon`: open file and commit-and-push -> plain. - `theGitViewItemsKeepThePlainIcon`: open file and commit-and-push -> plain.
- `copyReferenceKeepsThePlainIconThatTurnsAmberOnHighlight`: copy reference -> plain; the plain tint has no colour. - `copyReferenceKeepsThePlainIconThatTurnsAmberOnHighlight`: copy reference -> plain; the plain tint has no colour.
- `destructiveActionsAreAmberDeep`: git discard and delete -> danger. - `destructiveActionsAreAmberDeep`: git discard and delete -> danger.
@@ -6819,20 +6713,6 @@ GUI environment: `SHELL=/bin/zsh`, `HOME=/Users/me`, `PATH=/usr/bin:/bin`, `npm_
- `theTerminalFontFollowsTheWindowZoom`: terminal font size 10 gives a 10 pt font; with zoom scale 1.2 it gives 12 pt (± 0.001). - `theTerminalFontFollowsTheWindowZoom`: terminal font size 10 gives a 10 pt font; with zoom scale 1.2 it gives 12 pt (± 0.001).
#### State / CleanCopyTests (on `WorkspaceHarness`; the clean-copy file is `.clean-copy` at the project root; "the agent writes X" = the fake file gets text X, the model handles a clean-copy watch event, then settles)
- `theTextFoundOnProjectOpenIsTheBaselineAndNeverPops`: the project opens with `.clean-copy` = `left over from yesterday`: no overlay; a clean-copy event without a change still opens no overlay.
- `aChangedFileOpensThePopupWithItsText`: baseline `old`; the agent writes `git commit -m "fix"`: overlay clean-copy, popup text `git commit -m "fix"`.
- `aFileThatAppearsAfterOpenPops`: no file at open; the agent writes `first`: overlay clean-copy.
- `theSameTextAgainDoesNotPop`: writes `once`, dismiss, writes `once` again: no overlay.
- `anEmptyOrBlankFileDoesNotPop`: baseline `old`; writes `` then ` \n\t`: no overlay.
- `copyPutsTheEditedTextOnThePasteboardClosesAndToasts`: writes `draft`; the user edits the popup to `draft, edited`; the copy command copies exactly [`draft, edited`], closes the overlay, toasts [`Copied`].
- `escClosesWithoutCopying`: writes `draft`; dismiss: nothing copied; no overlay.
- `newTextReplacesAnUneditedPopup`: writes `one` then `two`: overlay still clean-copy with text `two`.
- `newTextLeavesAnEditedPopupAlone`: writes `one`; the user edits to `one, mine`; writes `two`: text stays `one, mine` and nothing is pending.
- `textWaitsForAnotherOverlayAndOnlyTheLatestShows`: with the shortcuts overlay open, writes `one` then `two`: the shortcuts overlay stays; after dismissing it the clean-copy overlay eventually appears with text `two`.
- `theFileIsNeverWrittenOrDeleted`: after write `keep` and copy, the file still holds `keep`; nothing deleted or written by the app.
#### State / LayoutStoreTests #### State / LayoutStoreTests
A session store that loads an agent split of 0.9 is used unless stated. Agent split range 0.18 to 0.82, default 0.52. Explorer width range 160 to 520. Window splitter = 1 point each. A session store that loads an agent split of 0.9 is used unless stated. Agent split range 0.18 to 0.82, default 0.52. Explorer width range 160 to 520. Window splitter = 1 point each.
@@ -6998,7 +6878,6 @@ Setup: a source-control store on `FakeGit` with the simple test derivation, toas
- `commitWithoutAMessageStillAsksGitThenFocusesTheMessage`: commit exits 1 with `Aborting commit due to empty commit message.`: runs `commit -m ""`; focus request targets the commit message; toasts [`Commit failed`]. - `commitWithoutAMessageStillAsksGitThenFocusesTheMessage`: commit exits 1 with `Aborting commit due to empty commit message.`: runs `commit -m ""`; focus request targets the commit message; toasts [`Commit failed`].
- `theRowMenuOpensTheFileAndClosesTheGitView`: git view open, context menu on git row `a.php`, open file `a.php`: git view closed; no overlay; `a.php` active. - `theRowMenuOpensTheFileAndClosesTheGitView`: git view open, context menu on git row `a.php`, open file `a.php`: git view closed; no overlay; `a.php` active.
- `thePassOnPromptInsertsIntoTheAgent`: pass on reference `a.php:3`, then pass to agent (text and reference `a.php:3`): the agent received exactly 1 send; overlay closed; toasts [`Passed to agent`]. - `thePassOnPromptInsertsIntoTheAgent`: pass on reference `a.php:3`, then pass to agent (text and reference `a.php:3`): the agent received exactly 1 send; overlay closed; toasts [`Passed to agent`].
- `bouwenInsertsTheCommandIntoTheAgent`: bouwen `2026-10-02-001-x` sends exactly the bracketed paste of `/bouwen 2026-10-02-001-x` (empty composer); toasts [`Passed to agent`].
- `aDirtyTabAsksBeforeItCloses`: `a.php` edited; close-file-or-window with cancel: asked [`a.php`], still active. With discard: nothing active. - `aDirtyTabAsksBeforeItCloses`: `a.php` edited; close-file-or-window with cancel: asked [`a.php`], still active. With discard: nothing active.
- `cancellingTheUnsavedPromptLeavesTheExplorerAndFocusAlone`: `a.php` edited, focus zone terminal, cancel; opening `b.php`: asked [`a.php`]; active stays `a.php`; Explorer selection `a.php`; focus zone still terminal. - `cancellingTheUnsavedPromptLeavesTheExplorerAndFocusAlone`: `a.php` edited, focus zone terminal, cancel; opening `b.php`: asked [`a.php`]; active stays `a.php`; Explorer selection `a.php`; focus zone still terminal.
- `aFailedSaveLeavesTheExplorerOnTheDirtyFile`: answer save, writes fail; opening `b.php`: active stays `a.php`; Explorer selection `a.php`. - `aFailedSaveLeavesTheExplorerOnTheDirtyFile`: answer save, writes fail; opening `b.php`: active stays `a.php`; Explorer selection `a.php`.
@@ -7029,19 +6908,13 @@ Setup: a source-control store on `FakeGit` with the simple test derivation, toas
#### State / WorkspaceModelTests, suite TerminalContextMenuModelTests #### State / WorkspaceModelTests, suite TerminalContextMenuModelTests
- `aRightClickInATerminalOpensTheAppMenuAtThePointer`: a right-click in the agent pane with a selection at (900, 300) opens a context menu with labels `Copy`, `Paste`, `Read aloud selection`, `Plak`, `Wait what?`, no header, anchored at (900, 300). - `aRightClickInATerminalOpensTheAppMenuAtThePointer`: a right-click in the agent pane with a selection at (900, 300) opens a context menu with labels `Copy`, `Paste`, `Read aloud selection`, no header, anchored at (900, 300).
- `copyPutsTheSelectionOnThePasteboard`: agent selection `npm test`; copy: copied [`npm test`]. - `copyPutsTheSelectionOnThePasteboard`: agent selection `npm test`; copy: copied [`npm test`].
- `waitWhatInsertsTheSelectionAsAWaitWhatCommand`: agent selection ` the reviewer was unsure\n`; wait-what sends exactly the bracketed paste of ``/wait-what `the reviewer was unsure` `` (trimmed, in backticks); toasts [`Passed to agent`].
- `readAloudSelectionReadsTheSelectionAsProse`: agent selection ` Run **npm test** first.\n` speaks [`Run npm test first.`]; reading is active. - `readAloudSelectionReadsTheSelectionAsProse`: agent selection ` Run **npm test** first.\n` speaks [`Run npm test first.`]; reading is active.
- `readAloudSelectionReadsTheShellSelection`: shell selection "```\nls -la\n```" speaks it unchanged. - `readAloudSelectionReadsTheShellSelection`: shell selection "```\nls -la\n```" speaks it unchanged.
- `readAloudSelectionWithBlankTextSaysSo`: agent selection ` \n`: nothing spoken; toasts [`Nothing to read`]. - `readAloudSelectionWithBlankTextSaysSo`: agent selection ` \n`: nothing spoken; toasts [`Nothing to read`].
- `plakSendsTheTrimmedSelection`: agent selection ` npm test\n`: Plak got [`npm test`].
- `plakSendsTheShellSelection`: shell selection `ls -la`: Plak got [`ls -la`].
- `plakWithBlankSelectionSaysSo`: agent selection ` \n`: nothing sent; toasts [`Nothing to send`].
- `plakSendsTheEditorSelection`: plak `\n $a = 1;\n` sends [`$a = 1;`].
- `plakWithBlankEditorTextSaysSo`: plak ` \n `: nothing sent; toasts [`Nothing to send`].
- `pasteSendsThePasteboardToThatTerminal`: clipboard `git status`; paste into shell: shell pasted [`git status`]; agent pasted nothing. - `pasteSendsThePasteboardToThatTerminal`: clipboard `git status`; paste into shell: shell pasted [`git status`]; agent pasted nothing.
- `menuIconsUseThePlainTint`: copy and paste terminal actions use the plain tint; icons: copy `doc.on.doc`, paste `doc.on.clipboard`; read aloud selection plain tint, icon `speaker.wave.2`; Plak (terminal and editor) plain tint, icon `note.text.badge.plus`. (SF Symbol names; a rebuild picks equivalent icons.) - `menuIconsUseThePlainTint`: copy and paste terminal actions use the plain tint; icons: copy `doc.on.doc`, paste `doc.on.clipboard`; read aloud selection plain tint, icon `speaker.wave.2`. (SF Symbol names; a rebuild picks equivalent icons.)
- `aProjectSwitchKeepsTheTerminalMenuWired`: after switching project the terminal store still has its context-menu handler. - `aProjectSwitchKeepsTheTerminalMenuWired`: after switching project the terminal store still has its context-menu handler.
#### State / WorkspaceModelTests, suite ReadAloudModelTests #### State / WorkspaceModelTests, suite ReadAloudModelTests
@@ -7131,7 +7004,6 @@ This guide explains Helder from the user's side: what each part of the window sh
- [Claude Code](claude-code.md): the agent pane. - [Claude Code](claude-code.md): the agent pane.
- [Command line](command-line.md): the shell pane. - [Command line](command-line.md): the shell pane.
- [Clean copy](clean-copy.md): text Claude hands you to copy, through `.clean-copy`.
###### Finding things ###### Finding things
@@ -7703,7 +7575,7 @@ Helder confirms what it just did with a toast: a small card that appears near th
###### Where it appears ###### Where it appears
- Centred at the bottom of the window, 44 points above the bottom edge, just over the status bar. - Centred at the bottom of the window, 44 points above the bottom edge, just over the status bar.
- Several toasts stack on top of each other. - Several toasts stack on top of each other.
- Toasts may sit on top of an open overlay, such as search or clean copy. - Toasts may sit on top of an open overlay, such as search.
###### How it goes away ###### How it goes away
- Each toast disappears by itself after about 2.3 seconds. - Each toast disappears by itself after about 2.3 seconds.
@@ -7744,7 +7616,6 @@ The agent:
| Title | Detail | When | | Title | Detail | When |
|---|---|---| |---|---|---|
| Passed to agent | the reference | Text was inserted into the Claude pane | | Passed to agent | the reference | Text was inserted into the Claude pane |
| Copied | character count | You copied the text of the [clean-copy](clean-copy.md) card |
###### Other short messages ###### Other short messages
Two other messages appear for a moment, but they are not toasts: Two other messages appear for a moment, but they are not toasts:
@@ -8780,7 +8651,7 @@ Pass on to Agent sends a pointer to your code to the [Claude Code](claude-code.m
The Claude Code pane is the top half of the right-hand column. It is a live terminal that runs the Claude agent in your project folder. The Claude Code pane is the top half of the right-hand column. It is a live terminal that runs the Claude agent in your project folder.
[Guide index](index.md) · Related: [Command line](command-line.md), [Pass on to Agent](pass-on-to-agent.md), [Clean copy](clean-copy.md), [Layout](layout.md), [Right-click menu](right-click-menu.md) [Guide index](index.md) · Related: [Command line](command-line.md), [Pass on to Agent](pass-on-to-agent.md), [Layout](layout.md), [Right-click menu](right-click-menu.md)
##### At a glance ##### At a glance
@@ -8823,8 +8694,7 @@ The Claude Code pane is the top half of the right-hand column. It is a live term
- After a pass, the keyboard moves to the Claude pane and a short [notification](notifications.md) confirms it ("Passed to agent"). - After a pass, the keyboard moves to the Claude pane and a short [notification](notifications.md) confirms it ("Passed to agent").
- Nothing is sent when the agent process is not running. - Nothing is sent when the agent process is not running.
###### Text from Claude to copy ###### Environment
- Claude can hand you text to copy by writing it to `.clean-copy` in the project root. Helder then opens a card with that text and a **Copy** button. See [Clean copy](clean-copy.md).
- Both terminals run with `TERM_PROGRAM=Helder`, so Claude can tell it runs inside Helder. - Both terminals run with `TERM_PROGRAM=Helder`, so Claude can tell it runs inside Helder.
###### Restart after the process exits ###### Restart after the process exits
@@ -8888,7 +8758,6 @@ All settings live in `.helder/config.json`. See [Configuration](configuration.md
- [Command line](command-line.md): the shell pane below, with the same look and copy behaviour. - [Command line](command-line.md): the shell pane below, with the same look and copy behaviour.
- [Pass on to Agent](pass-on-to-agent.md): send code references into Claude's composer. - [Pass on to Agent](pass-on-to-agent.md): send code references into Claude's composer.
- [Clean copy](clean-copy.md): copy text that Claude writes to `.clean-copy`.
- [Right-click menu](right-click-menu.md): Copy and Paste in the terminal. - [Right-click menu](right-click-menu.md): Copy and Paste in the terminal.
- [Layout](layout.md): the splitter, the Claude toggle and column widths. - [Layout](layout.md): the splitter, the Claude toggle and column widths.
- [Configuration](configuration.md): where `ai` and `terminal` settings live. - [Configuration](configuration.md): where `ai` and `terminal` settings live.
@@ -8985,77 +8854,6 @@ The font, cursor and colour settings are shared with Claude Code. See [Claude Co
--- ---
### Appendix: guide/clean-copy.md
#### Clean copy
Clean copy lets Claude hand you text to copy: a command, a commit message, a draft. Claude writes it to a file, and Helder shows it in a card at the top of the window, ready to edit and copy. You never have to select text out of the terminal.
[Guide index](index.md) · Related: [Claude Code](claude-code.md), [Notifications](notifications.md)
##### At a glance
```text
+----------------------------------------------------------------+
| (1) From Claude .clean-copy (2) [ Copy Cmd+Enter ] |
+----------------------------------------------------------------+
| (3) |
| feat: show the refund state on the order page |
| |
| The order page now shows when a refund is pending._ |
| |
+----------------------------------------------------------------+
| (4) copied as plain text . 74 characters |
+----------------------------------------------------------------+
```
1. **Header**: the title and the file name, `.clean-copy`.
2. **Copy**: copies the text and closes the card.
3. **Text area**: the text Claude wrote, in a monospaced font. You can edit it before you copy.
4. **Footer**: how the text is copied, and how many characters it holds.
##### Features
###### The file
- The channel is one file: `.clean-copy` in the root of the project.
- Claude overwrites the whole file each time it has text for you. Helder only reads it; it never clears or deletes it.
- Both terminals get `TERM_PROGRAM=Helder` in their environment, so Claude can tell it runs inside Helder.
- Like any file, `.clean-copy` shows up in [Git](git.md) and the [Explorer](explorer.md) unless you ignore it.
###### When the card opens
- The card opens when the contents of `.clean-copy` change while the project is open.
- Helder waits a moment after the last write, so it reads the whole text, not half of it.
- The text that is in the file when you open the project never opens the card.
- An empty file, or one with only spaces and blank lines, does not open the card.
- Writing the same text again does not open the card a second time.
- The card opens in the window of that project, even when the window is in the background. Helder does not come to the front.
###### While something else is open
- When another card or dialog is open, such as [search](search.md) or a [dialog](dialogs.md), the text waits. The card opens once you close the other one.
- If Claude writes several times while you wait, only the newest text shows.
- When the clean-copy card is already open and new text arrives, the card shows the new text, unless you already edited the text. Then your edits stay and the new text is dropped.
###### Copying
- Click **Copy** or press `Cmd+Enter`.
- The text in the card, with your edits, goes to the clipboard as plain text.
- The card closes, and a [notification](notifications.md) says "Copied".
- `Esc`, or a click outside the card, closes it without copying.
##### Keyboard
| Keys | Action |
|---|---|
| `Cmd+Enter` | Copy the text and close |
| `Esc` | Close without copying |
##### Related
- [Claude Code](claude-code.md): the agent that writes `.clean-copy`.
- [Notifications](notifications.md): the "Copied" confirmation.
- [Keyboard shortcuts](keyboard-shortcuts.md): every key in one list.
---
### Appendix: guide/search.md ### Appendix: guide/search.md
#### Search #### Search
@@ -9278,7 +9076,7 @@ Helder draws its own right-click menu, in the same dark style everywhere. This p
3. **Separator**: a thin line between groups of items. 3. **Separator**: a thin line between groups of items.
4. **Destructive item**: Delete reads in amber-deep, so it stands out. 4. **Destructive item**: Delete reads in amber-deep, so it stands out.
Each item has a small icon. Add-type items (New file, New folder) have a teal icon. Copy file name and Show in Finder have an amber icon. Read aloud has a speaker icon. Plak has a note icon with a plus. Each item has a small icon. Add-type items (New file, New folder) have a teal icon. Copy file name and Show in Finder have an amber icon. Read aloud has a speaker icon.
##### Features ##### Features
@@ -9411,20 +9209,6 @@ Right-click a folder. This menu has no header.
- **Rename folder**: opens the name prompt with the current name. - **Rename folder**: opens the name prompt with the current name.
- **Delete folder**: always asks first. The folder and everything inside it are deleted for good. - **Delete folder**: always asks first. The folder and everything inside it are deleted for good.
A folder directly inside the top-level `ontwikkelingen/` folder gets one extra group at the top. The archive folder `ontwikkelingen/ontwikkeld/` and deeper folders do not.
```text
+----------------------------------------+
| T Bouwen |
|----------------------------------------|
| * Pass on reference |
| # Copy reference |
| ... |
+----------------------------------------+
```
- **Bouwen**: inserts `/bouwen <folder name>` into the [Claude Code](claude-code.md) input, not sent. For example `/bouwen 2026-10-02-001-stats`. A [notification](notifications.md) says `Passed to agent`.
###### Explorer: empty space ###### Explorer: empty space
Right-click the empty space under the rows of the [Explorer](explorer.md). It stands for the project folder. The header is the project name with a trailing `/`. Right-click the empty space under the rows of the [Explorer](explorer.md). It stands for the project folder. The header is the project name with a trailing `/`.
@@ -9467,8 +9251,6 @@ With a selection:
| # Copy reference | | # Copy reference |
|----------------------------------------| |----------------------------------------|
| )) Read aloud selection | | )) Read aloud selection |
|----------------------------------------|
| >> Plak |
+----------------------------------------+ +----------------------------------------+
``` ```
@@ -9485,9 +9267,8 @@ On a marked (teal) line of a changed file:
- **Pass on selection** passes the reference and the selected code. See [Pass on to Agent](pass-on-to-agent.md). - **Pass on selection** passes the reference and the selected code. See [Pass on to Agent](pass-on-to-agent.md).
- **Read aloud selection** reads the selected text aloud. In a Markdown file the markup is left out. Stop it with **Stop** in the [title bar](title-bar.md#read-aloud). - **Read aloud selection** reads the selected text aloud. In a Markdown file the markup is left out. Stop it with **Stop** in the [title bar](title-bar.md#read-aloud).
- **Plak** sends the selected text to [Plak](#plak). On a marked line it comes before Show diff.
- **Show diff** opens the full-screen [Diff](file-view-diff.md) of the file, centred on the line you right-clicked. Every marked line counts, a blank one and the space after the text included. A new file, where every line is marked, has no Show diff. A left click on a marked line only places the caret. - **Show diff** opens the full-screen [Diff](file-view-diff.md) of the file, centred on the line you right-clicked. Every marked line counts, a blank one and the space after the text included. A new file, where every line is marked, has no Show diff. A left click on a marked line only places the caret.
- The same menu shows on the rendered [Markdown preview](file-view-markdown.md) and on an image. There it refers to the file's first line, for example `README.md:1`, and has no Read aloud selection and no Plak. To hear a previewed file, right-click it in the Explorer and choose **Read aloud**. - The same menu shows on the rendered [Markdown preview](file-view-markdown.md) and on an image. There it refers to the file's first line, for example `README.md:1`, and has no Read aloud selection. To hear a previewed file, right-click it in the Explorer and choose **Read aloud**.
- `Cmd+Right` with code selected opens the Pass on prompt straight away, without the menu. - `Cmd+Right` with code selected opens the Pass on prompt straight away, without the menu.
###### Diff ###### Diff
@@ -9517,15 +9298,9 @@ With text selected in the pane:
| # Paste | | # Paste |
|----------------------------------------| |----------------------------------------|
| )) Read aloud selection | | )) Read aloud selection |
|----------------------------------------|
| >> Plak |
|----------------------------------------|
| ? Wait what? |
+----------------------------------------+ +----------------------------------------+
``` ```
Wait what? shows only in the Claude Code pane, not in the Command line pane.
Without a selection: Without a selection:
```text ```text
@@ -9537,17 +9312,6 @@ Without a selection:
- **Copy** (only with a selection): copies the selected terminal text. - **Copy** (only with a selection): copies the selected terminal text.
- **Paste**: types the clipboard text into that pane, as a normal paste would. With an empty clipboard nothing happens. - **Paste**: types the clipboard text into that pane, as a normal paste would. With an empty clipboard nothing happens.
- **Read aloud selection** (only with a selection): reads the selected text with the system voice. Markdown markup is left out. With nothing left to read, a [notification](notifications.md) says `Nothing to read`. Stop it with **Stop** in the [title bar](title-bar.md#read-aloud). - **Read aloud selection** (only with a selection): reads the selected text with the system voice. Markdown markup is left out. With nothing left to read, a [notification](notifications.md) says `Nothing to read`. Stop it with **Stop** in the [title bar](title-bar.md#read-aloud).
- **Plak** (only with a selection): sends the selected text to [Plak](#plak).
- **Wait what?** (Claude Code pane, only with a selection): inserts ``/wait-what `selected text` `` into the [Claude Code](claude-code.md) input, not sent. Spaces and blank lines around the selection are trimmed. A [notification](notifications.md) says `Passed to agent`.
###### Plak
**Plak** sends the selected text to Plak, the scratchpad app for macOS. Plak must be installed.
- The text, with spaces and blank lines around it trimmed, goes to the end of the Plak page as a new block.
- Plak opens (it starts if it is not running), scrolls to the new block and takes the focus.
- A blank selection sends nothing. A [notification](notifications.md) says `Nothing to send`.
- A very long selection (more than about 100 KB) goes through the clipboard. Helder puts your own clipboard back one second later.
##### Keyboard ##### Keyboard
@@ -9918,14 +9682,6 @@ See [Search](search.md).
| `Return` | Open the selected result | | `Return` | Open the selected result |
| `Esc` | Close search | | `Esc` | Close search |
###### Clean copy
See [Clean copy](clean-copy.md).
| Keys | Action |
|---|---|
| `Cmd+Enter` | Copy the text and close the card |
| `Esc` | Close the card without copying |
###### Right-click menus and dialogs ###### Right-click menus and dialogs
See [Right-click menu](right-click-menu.md) and [Dialogs](dialogs.md). See [Right-click menu](right-click-menu.md) and [Dialogs](dialogs.md).
@@ -10275,8 +10031,6 @@ Right-clicking inside the code area, with or without a selection, shows a contex
With a selection, a separator and **Read aloud selection** follow Copy reference. It reads the selected text with the system voice; in a Markdown file the selection is read as prose, the markup left out. The rendered Markdown preview has no Read aloud selection; its selection is not Helder's (use Read aloud on the file). With a selection, a separator and **Read aloud selection** follow Copy reference. It reads the selected text with the system voice; in a Markdown file the selection is read as prose, the markup left out. The rendered Markdown preview has no Read aloud selection; its selection is not Helder's (use Read aloud on the file).
With a selection, a separator and **Plak** follow Read aloud selection. It sends the selected text to Plak, the user's scratchpad app; see [Plak](#plak). The preview has no Plak.
On a marked line of the live file (any marked line, blank lines and the space after the text included), a separator and a last item follow: **Show diff**, which opens the Diff centred on that line. A new file, Preview and the Diff's own menu have no Show diff. On a marked line of the live file (any marked line, blank lines and the space after the text included), a separator and a last item follow: **Show diff**, which opens the Diff centred on that line. A new file, Preview and the Diff's own menu have no Show diff.
###### File-state behavior in the views ###### File-state behavior in the views
@@ -10298,15 +10052,6 @@ The top pane of the fourth column.
- It is one terminal only. There are no additional agent sessions in this version. - It is one terminal only. There are no additional agent sessions in this version.
- Both terminals run with `TERM_PROGRAM=Helder` in their environment, so the agent can tell it runs inside Helder. - Both terminals run with `TERM_PROGRAM=Helder` in their environment, so the agent can tell it runs inside Helder.
###### Clean copy
The agent hands the user text to copy through one file, `.clean-copy` in the project root. The agent overwrites the file each time; Helder only reads it and never clears or deletes it.
- When the file's contents change while the project is open, Helder reads it after a short pause (writes are not atomic) and opens the **From Claude** popup, a card at the top of the window. The contents found when the project opens are the baseline and never open the popup. An empty or blank file, or the same text as last seen, opens nothing.
- The popup holds an editable text area. **Copy** (or `Cmd+Enter`) copies the text, with the user's edits, to the clipboard as plain text, closes the popup and shows the "Copied" toast. `Esc` or a click outside closes it without copying.
- With another overlay open, the newest text waits and opens once that overlay closes. New text while the popup is open replaces its text only when the user has not edited it.
- The popup opens in the project's own window even when that window is in the background; Helder does not take focus.
--- ---
##### 7. Terminal pane ##### 7. Terminal pane
@@ -10320,14 +10065,10 @@ The bottom pane of the fourth column.
###### Right-click in a terminal ###### Right-click in a terminal
Right-clicking in the agent pane or the terminal pane shows a menu without a header line. With a selection it holds **Copy**, **Paste**, a separator, **Read aloud selection**, a separator and **Plak**; the agent pane adds a separator and **Wait what?**. Without a selection it holds only **Paste**. Right-clicking in the agent pane or the terminal pane shows a menu without a header line. With a selection it holds **Copy**, **Paste**, a separator and **Read aloud selection**. Without a selection it holds only **Paste**.
**Read aloud selection** reads the selected text with the system voice, as prose with the Markdown markup left out. A selection with no prose left, such as one code block, is read as it is. Blank text reads nothing and shows the toast "Nothing to read". **Read aloud selection** reads the selected text with the system voice, as prose with the Markdown markup left out. A selection with no prose left, such as one code block, is read as it is. Blank text reads nothing and shows the toast "Nothing to read".
###### Plak
**Plak** (code and terminal menus, only with a selection) sends the selected text, trimmed, to Plak, the user's macOS scratchpad app. The text lands at the end of the Plak page as a new block; Plak opens (it starts if needed), scrolls to the block and takes the focus. Blank text sends nothing and shows the toast "Nothing to send". Text up to about 100 KB goes in the URL; longer text goes through the clipboard, and Helder restores the user's clipboard one second later. The URL contract is in [plak.md](plak.md).
--- ---
##### 8. Status bar ##### 8. Status bar
@@ -10418,74 +10159,6 @@ Settings that affect behavior described above include indentation and editor dis
--- ---
### Appendix: plak.md (the plak:// URL contract)
#### Plak URL scheme
Plak is the user's scratchpad app for macOS. Other apps add text to it through two `plak://` URLs. This page is the contract that Helder relies on.
##### `plak://append?text=<text>`
Adds the text at the end of the Plak page, as a new block with its own created date.
- Percent-encode the text as a URL query value: space `%20`, newline `%0A`, `&` `%26`, `+` `%2B`, `#` `%23`.
- Never encode a space as `+`. Plak keeps a `+` literal, so the block would show `+` signs.
- Plak detects the content type as for a paste. PHP, JSON, XML and CSV become a code block or a table. All other text becomes plain text.
##### `plak://paste`
Adds the current contents of the macOS general pasteboard, text or images.
- Use it for images and for text over about 100 KB, where a long URL can fail to open.
- Put the content on the pasteboard first, then open the URL.
- Save the user's clipboard before, and restore it one second after.
##### What Plak does
- Plak starts if it is not running. It shows its window, scrolled to the new content, and takes the focus.
- An empty or missing `text` adds nothing, but Plak still shows.
- Every other `plak://` URL does nothing.
- There is no callback and no error result. The sender cannot know if the add worked.
##### Opening the URL
```sh
open "plak://append?text=Hello%20from%20my%20app"
```
```swift
var components = URLComponents()
components.scheme = "plak"
components.host = "append"
components.queryItems = [URLQueryItem(name: "text", value: text)]
// URLQueryItem leaves "+" as it is; encode it yourself.
components.percentEncodedQuery = components.percentEncodedQuery?
.replacingOccurrences(of: "+", with: "%2B")
if let url = components.url { NSWorkspace.shared.open(url) }
```
```applescript
open location "plak://append?text=Hello%20from%20my%20app"
```
```js
shell.openExternal("plak://append?text=" + encodeURIComponent(text))
```
```python
subprocess.run(["open", "plak://append?text=" + urllib.parse.quote(text, safe="")])
```
##### In Helder
- The **Plak** item in the right-click menu of the code and of both terminal panes uses this scheme. See [behaviour.md](behaviour.md#plak) and the [right-click guide](guide/right-click-menu.md#plak).
- URL building and the 100 KB choice: `Plak` in `Sources/HelderCore/Files/Plak.swift`. The limit counts UTF-8 bytes.
- Opening the URL and the clipboard save and restore: `SystemActing.sendToPlak` in `Sources/HelderUI/Shell/SystemActions.swift`.
Plak replaces Helder's old project note (`.notes.txt`, `Cmd+N`), which is gone.
---
### Appendix: design handoff v2 README (design source of the Git view) ### Appendix: design handoff v2 README (design source of the Git view)
#### Handoff: Helder App v2 — full-screen Git view #### Handoff: Helder App v2 — full-screen Git view
@@ -10511,7 +10184,7 @@ The files in this bundle are **design references created in HTML**. They are pro
The prototype fakes git: file contents live in memory, and console output is simulated. The real build must run real git commands and stream their real stdout and stderr into the console. The prototype fakes git: file contents live in memory, and console output is simulated. The real build must run real git commands and stream their real stdout and stderr into the console.
##### Fidelity ##### Fidelity
**High-fidelity.** Colours, type, spacing, states and copy are final. Recreate them pixel-precisely with the codebase's own components. The visual language is the Blijnder **Kade** design system in its dark (slate) application: IBM Plex Mono and IBM Plex Sans, flat fields, 2px radii, amber as the only accent, no shadows except on menus and modals. **High-fidelity.** Colours, type, spacing, states and copy are final. Recreate them pixel-precisely with the codebase's own components. The visual language is a dark (slate) design system: IBM Plex Mono and IBM Plex Sans, flat fields, 2px radii, amber as the only accent, no shadows except on menus and modals.
--- ---
@@ -10565,7 +10238,7 @@ From top to bottom:
- Ready state (≥1 staged file **and** a non-empty message): background `#E8913A`, text `#101720`. - Ready state (≥1 staged file **and** a non-empty message): background `#E8913A`, text `#101720`.
- Otherwise: background `#232C39`, text `#828D9A`. It stays clickable, so git's own error appears in the console. - Otherwise: background `#232C39`, text `#828D9A`. It stays clickable, so git's own error appears in the console.
- Caret part: 32×32px, `chevron-down` icon at 14px, separated from the main part by a `1px #101720` left border. It opens a context menu with `Commit` (icon `check`) and **`Commit and push`** (icon `arrow-up-from-line`, bold). - Caret part: 32×32px, `chevron-down` icon at 14px, separated from the main part by a `1px #101720` left border. It opens a context menu with `Commit` (icon `check`) and **`Commit and push`** (icon `arrow-up-from-line`, bold).
- Hover on either part: `filter: brightness(.92)`. (Real build: use amber-deep `#C4741F` instead, per Kade.) - Hover on either part: `filter: brightness(.92)`. (Real build: use amber-deep `#C4741F` instead.)
###### 3. File sections (scrolling area, `flex: 1`, padding-bottom 24px) ###### 3. File sections (scrolling area, `flex: 1`, padding-bottom 24px)
Sections appear in this fixed order, and only when they contain files: Sections appear in this fixed order, and only when they contain files:
@@ -10778,7 +10451,7 @@ gInput: string; gHist: string[] // console input + history
- **Accent**: `#E8913A` (amber), `#C4741F` (amber-deep, hover), `#F0B476` (amber-soft). - **Accent**: `#E8913A` (amber), `#C4741F` (amber-deep, hover), `#F0B476` (amber-soft).
- **Status**: - **Status**:
- Modified `#F0B476`, New `#8FBFB4` (teal), Deleted `#C3A6CE` (lilac), Staged `#E8913A`. - Modified `#F0B476`, New `#8FBFB4` (teal), Deleted `#C3A6CE` (lilac), Staged `#E8913A`.
- Teal and lilac already exist in Helder's v1 vocabulary (diff colours and the php badge). They are app-level additions outside the core Kade palette. - Teal and lilac already exist in Helder's v1 vocabulary (diff colours and the php badge). They are app-level additions outside the core palette.
- **Type**: - **Type**:
- IBM Plex Mono (400/500/600/700) and IBM Plex Sans (400/500/600). - IBM Plex Mono (400/500/600/700) and IBM Plex Sans (400/500/600).
- Sizes used: 10, 11, 12, 13, 14px. - Sizes used: 10, 11, 12, 13, 14px.
@@ -10788,16 +10461,16 @@ gInput: string; gHist: string[] // console input + history
- **Spacing**: 4px steps. Common values are 6, 8, 10, 12, 14 and 16px. - **Spacing**: 4px steps. Common values are 6, 8, 10, 12, 14 and 16px.
##### Assets ##### Assets
- **Icons**: Lucide 0.544.0 at stroke width 1.75, through the Kade `Icon` component. Used here: - **Icons**: Lucide 0.544.0 at stroke width 1.75. Used here:
- `git-branch`, `cloud` - `git-branch`, `cloud`
- `arrow-down-to-line`, `arrow-up-from-line` - `arrow-down-to-line`, `arrow-up-from-line`
- `minimize-2`, `chevron-down`, `chevron-right` - `minimize-2`, `chevron-down`, `chevron-right`
- `eraser`, `check`, `file-text`, `sparkle`, `files` - `eraser`, `check`, `file-text`, `sparkle`, `files`
- **Fonts**: IBM Plex Mono and IBM Plex Sans (Google Fonts, through the Kade `tokens/fonts.css`). - **Fonts**: IBM Plex Mono and IBM Plex Sans (Google Fonts).
- There are no images. - There are no images.
##### Files ##### Files
- `Helder App v2.dc.html`: the full prototype. Open it in a browser next to `support.js`; it loads the Kade tokens and bundle from `_ds/blijnder-e2fd6583-1c87-4e16-bc91-117f035adbbc/` in the source project. - `Helder App v2.dc.html`: the full prototype. Open it in a browser next to `support.js`.
- **Where to look in the file**: - **Where to look in the file**:
| What | Where | | What | Where |
@@ -10840,11 +10513,10 @@ A file with a git change shows its changed lines with a tinted background.
##### Done in this session (uncommitted) ##### Done in this session (uncommitted)
- Bouwen item on `ontwikkelingen/<name>` folders.
- Arrow instead of the I-beam over the context menu where it covers the editor (`PointerBoundTextView.mouseEntered`). - Arrow instead of the I-beam over the context menu where it covers the editor (`PointerBoundTextView.mouseEntered`).
- No header on folder menus. - No header on folder menus.
##### Verify ##### Verify
- Tests and docs for each item, as in the earlier changes (`docs/guide/right-click-menu.md`, `docs/behaviour.md`). - Tests and docs for each item, as in the earlier changes (`docs/guide/right-click-menu.md`, `docs/behaviour.md`).
- Check in the running app; drive the mouse only when Jonathan is away from the machine. - Check in the running app.