Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(kanban): an issue's run history never folds; reflow the assign help

review18bd5eb50629
diff --git a/CLAUDE.md b/CLAUDE.md
index 56a9095c1..3fe3c95e8 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -5578,7 +5578,8 @@ the Settings section and ShortcutsPanel start disagreeing about what a chord mea
by the same author (name AND colour) of the same type within two minutes of the run's NEWEST row
render as one "×N" row that expands in place; the jsonl is never rewritten. The window is
anchored, not chained, so a ×N never spans more than two minutes. Comments never fold, and
- neither do `agent-message` / `agent-read-cookies` — audit rows (`NEVER_COLLAPSE`).
+ neither do `agent-message` / `agent-read-cookies` (audit rows) or an issue's `run-started` /
+ `run-ended` history (each row names a different session) — `NEVER_COLLAPSE`.
- **Keyboard**: registry scope `board` (group Board) — Space opens the focused/hovered card,
J/K + ArrowDown/Up walk board order (the session cards on screen, column by column, Ungrouped
first; GitHub cards excluded), ArrowLeft/Right jump to the same row of the neighbouring
diff --git a/src/core/canvas-control-core.ts b/src/core/canvas-control-core.ts
index 36c9ca83d..f897b4a0c 100644
--- a/src/core/canvas-control-core.ts
+++ b/src/core/canvas-control-core.ts
@@ -1155,8 +1155,9 @@ ${issueBindingDocLines().join('\n')}
\`ungrouped\`, to send it back to Ungrouped; \`--before <nodeId>\` drops it just above that card
within the column, and without \`--before\` the card lands at the TOP of the column — so a card
you just moved to "Done" is the first one there, not buried at the bottom of a long column (a
- \`--before\` naming a card that is not in that column counts as no anchor). This is board metadata ONLY — it never moves the node on the canvas, changes
- its group, or touches the running session. Use it to reflect progress: as a station finishes,
+ \`--before\` naming a card that is not in that column counts as no anchor). This is board
+ metadata ONLY — it never moves the node on the canvas, changes its group, or touches the running
+ session. Use it to reflect progress: as a station finishes,
move its card into your "In Progress" / "Done" column so the board tells the real story.
${settingsVerbDocLines().join('\n')}
${reportIssueDocLines().join('\n')}
diff --git a/src/renderer/lib/boardLogCollapse.test.ts b/src/renderer/lib/boardLogCollapse.test.ts
index 6a0d9a9be..18672720d 100644
--- a/src/renderer/lib/boardLogCollapse.test.ts
+++ b/src/renderer/lib/boardLogCollapse.test.ts
@@ -56,8 +56,10 @@ describe('collapseFeed (render-time only — the log itself is never rewritten)'
expect(shape(collapseFeed([comment(3), comment(2), comment(1)]))).toEqual([1, 1, 1])
})
- it('never folds the two AUDIT types, however alike the rows are', () => {
- expect([...NEVER_COLLAPSE].sort()).toEqual(['agent-message', 'agent-read-cookies'])
+ // run-started / run-ended are an issue's run history: each row names a DIFFERENT session, so a
+ // "×3" would hide exactly which sessions ran — the thing that panel exists to show.
+ it('never folds the audit types or the run history, however alike the rows are', () => {
+ expect([...NEVER_COLLAPSE].sort()).toEqual(['agent-message', 'agent-read-cookies', 'run-ended', 'run-started'])
for (const type of NEVER_COLLAPSE) {
const feed = [ev(3, type, AGENT), ev(2, type, AGENT), ev(1, type, AGENT)]
expect(shape(collapseFeed(feed))).toEqual([1, 1, 1])
diff --git a/src/renderer/lib/boardLogCollapse.ts b/src/renderer/lib/boardLogCollapse.ts
index d7125f9d0..92fa18a58 100644
--- a/src/renderer/lib/boardLogCollapse.ts
+++ b/src/renderer/lib/boardLogCollapse.ts
@@ -9,7 +9,8 @@
* Rules:
* - comments never fold (each one is something a person wrote);
* - `NEVER_COLLAPSE` types never fold — `agent-message` and `agent-read-cookies` are AUDIT rows:
- * a trace whose rows can be folded away is a trace a reader can miss one row of;
+ * a trace whose rows can be folded away is a trace a reader can miss one row of — and neither do
+ * an issue's `run-started` / `run-ended` rows, which each name a different session;
* - the window is anchored at the group's NEWEST row, so a "×N" never spans more than two
* minutes. A chained window (each row within 2 min of the previous one) would let a card dragged
* back and forth every 90 seconds for an hour collapse into a single row claiming one moment;
@@ -19,10 +20,13 @@ import type { BoardLogEntry, BoardLogEvent } from '@shared/types'
export const BOARD_LOG_COLLAPSE_WINDOW_MS = 2 * 60_000
-/** Audit event types: always one row each. */
+/** Always one row each: the audit types, and an issue's run history (each run row names a
+ * different session — a "×N" would hide exactly which sessions ran). */
export const NEVER_COLLAPSE: ReadonlySet<BoardLogEvent['type']> = new Set<BoardLogEvent['type']>([
'agent-message',
- 'agent-read-cookies'
+ 'agent-read-cookies',
+ 'run-started',
+ 'run-ended'
])
export type FeedItem =