Repository navigation
A request in the history says which session it belongs to - #72
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.HistoryRownow carries it, and it is the same value asSessionView::id, so the two ends join.Requests whose session could not be worked out (no fingerprint, or records written before sessions existed) stay
Nonerather than pretending to belong somewhere.An added optional field, so
CONTROL_API_VERSIONis unchanged.This unblocks folding the desktop app's requests and sessions tabs into one table that can group by session.
🤖 Generated with Claude Code