Skip to content

A request in the history says which session it belongs to - #72

Merged
fylorn merged 1 commit into
mainfrom
feat/history-carries-its-session
Sep 21, 2026
Merged

fylorn merged 1 commit into
mainfrom
feat/history-carries-its-session

Conversation

@fylorn

@fylorn fylorn commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Requests and sessions are the same records at two grains, and the desktop UI has no door between them: looking at an expensive request you cannot ask which task it came from, and looking at an expensive task you cannot get back to the one request that did it.

The column has been in the store all along — requests.session, with an index on it — it was simply never handed out. HistoryRow now carries it, and it is the same value as SessionView::id, so the two ends join.

Requests whose session could not be worked out (no fingerprint, or records written before sessions existed) stay None rather than pretending to belong somewhere.

An added optional field, so CONTROL_API_VERSION is unchanged.

This unblocks folding the desktop app's requests and sessions tabs into one table that can group by session.

🤖 Generated with Claude Code

Requests and sessions are the same records at two grains, and the UI
has no door between them: looking at an expensive request you cannot
ask which task it came from, and looking at an expensive task you
cannot get back to the one request that did it.

The column has been in the store all along — `requests.session`, with
an index on it — it was simply never handed out. `HistoryRow` now
carries it, and it is the same value as `SessionView::id`, so the two
ends join.

Requests whose session could not be worked out (no fingerprint, or
records written before sessions existed) stay `None` rather than
pretending to belong somewhere.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@fylorn
fylorn merged commit f8fad86 into main Sep 21, 2026
1 check passed
@fylorn
fylorn deleted the feat/history-carries-its-session branch September 21, 2026 08:35
This was referenced Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant