Skip to content

armgit / cogit

Public Imported from GitHub
0

Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.

fix(map): highlight a session row only when the session is selected

Eren6b7a42449e74
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4ddf01e..5df42c5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Changed
- Clicking a message on the map selects only that message, as the outline does, instead of also tinting its whole branch; the side panel shows the message's branch either way.
+- A selected message no longer also highlights its session's row; the session row is highlighted only when the session itself is selected.
## [0.23.1] - 2026-10-30
### Fixed
diff --git a/packages/template/src/Graph.tsx b/packages/template/src/Graph.tsx
index 2a5fe48..a230108 100644
--- a/packages/template/src/Graph.tsx
+++ b/packages/template/src/Graph.tsx
@@ -138,7 +138,8 @@ function ProjectBox({ data }: NodeProps<ProjectFlowNode>) {
<SessionMap
model={data.model}
graph={data.graph}
- selectedSessionId={selection?.sessionId ?? null}
+ // Only the session itself: a selected message is highlighted on its own row.
+ selectedSessionId={selection?.type === "session" ? selection.sessionId : null}
openIds={openIds}
highlightSessionIds={data.sessionHits}
onOpen={openSession}