Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.
JavaScript ai-codingclaudeclaude-codeclaude-code-pluginclicoding-agentsdeveloper-toolsgitllmtypescript
fix(map): let mouse clicks reach session and message dots
Erenb07880f55af1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7ab814e..a50580d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- `codelineage log [dir]` prints the recorded lineage like `git log --graph --oneline`, newest first: per message its short hash, `mN`, time, title, `↩` returns and commit tags, a branch's first message with the branch title, and a header line per session (title, epoch, time span). `--session <id|prefix>` narrows to one session, `-n <count>` limits the messages, `--branches` prints only the branch summaries (title, asked, outcome, open) and `--json` prints the model. `codelineage show <ref> [dir]` prints one message — session, time, parent and children as refs, returns, the branch it sits in with that branch's summary, decisions, agent decisions, work, commits with their git subjects, files and its stored conversation turn (`--no-chat` skips it, `--json` prints the model) — and takes a message hash, a unique prefix of at least six hex characters after the `h`, or `<session-id-prefix>:mN`; an ambiguous prefix lists the candidates and exits non-zero. The map's drill-down shows the message's short hash with a copy button ("Ask your agent: codelineage show <hash>").- Session start handoff: in an initialized project the `SessionStart` hook (`startup`, `resume`, `clear`) now hands the agent what it needs to continue — that the lineage is recorded and how to read it (`codelineage log|show … -C <dir>`, spelled with the exact bundled CLI path), the rule to run `show <ref>` before answering when the user mentions a message hash or another session's `mN`, and the compressed view of the most recent other session: title, status (goal, pending with items that need the user, next) and branch summaries. The text is cut to ~1,500 tokens, oldest branches first, with a line saying how many were cut. The new `startupContext` setting (default `true`, also editable in the served panel) spends no tokens on it when off, and `log` and `show` now accept `-C <dir>` like `blame`.+### Fixed+- Map: a mouse click on a session dot or row (project view) or on a message dot now opens it; React Flow had turned pointer events off on those nodes, so only keyboard or scripted clicks worked.+## [0.8.0] - 2026-10-24### Added- The panel's settings are editable on the page the local map server serves: `messageSummaries`, `language`, `updateEveryTurns`, `sessionEndCatchUp` and `catchUpModel` get a control and a Save button, and the server takes one small `POST /api/config` (same-origin only, a per-server token from the page, JSON body under 4 KB, validated with the config schema). After a write it rebuilds the panel and any open map so the pages refresh; over `file://` the settings stay read-only.diff --git a/packages/template/src/GitGraph.tsx b/packages/template/src/GitGraph.tsxindex 61f3993..0573cc5 100644--- a/packages/template/src/GitGraph.tsx+++ b/packages/template/src/GitGraph.tsx@@ -234,6 +234,25 @@ export function GitGraph({<circle key={row.message.id} cx={x} cy={row.y} r={4.5} fill={color(row.colorIndex)} />);})}+ {git.rows.map((row) => {+ if (row.kind !== "message") return null;+ const x = git.laneX[branches.get(row.segmentId)?.lane ?? 0] ?? 0;+ // An invisible, larger target so a click on the dot does what a click on its row does.+ return (+ <circle+ key={`${row.message.id}-hit`}+ className="git-dot-hit nodrag nopan"+ cx={x}+ cy={row.y}+ r={10}+ fill="transparent"+ onClick={(event) => {+ event.stopPropagation();+ onSelect(row);+ }}+ />+ );+ })}</svg><div className="git-rows" style={{ left: git.graphWidth + 8, width: git.rowWidth }}>{git.rows.map((row) => {diff --git a/packages/template/src/styles.css b/packages/template/src/styles.cssindex 9d3e8bd..d20b9dd 100644--- a/packages/template/src/styles.css+++ b/packages/template/src/styles.css@@ -1197,3 +1197,18 @@ time {font-size: 12px;}+/*+ * React Flow turns pointer events off on nodes that are neither selectable nor+ * draggable, so the rows and dots inside a map node must turn them back on;+ * the rest of the node stays click-through and keeps panning the canvas.+ */+.map-node button,+.map-node .git-row,+.session-dot,+.git-dot-hit {+ pointer-events: all;+}++.git-dot-hit {+ cursor: pointer;+}