Skip to content

refactor(daemon): move session types + tracking to sessionState.ts - #127

Merged
rgao-coreweave merged 1 commit into
109-05-session-helpersfrom
109-06-session-types
Jul 17, 2026
Merged

refactor(daemon): move session types + tracking to sessionState.ts#127
rgao-coreweave merged 1 commit into
109-05-session-helpersfrom
109-06-session-types

Conversation

@rgao-coreweave

@rgao-coreweave rgao-coreweave commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Verbatim move of SessionState, the tracker types (PendingToolCall, SubagentTracker, TeamMember, LoadedInstruction), SubagentTracking, newSessionState, and resolvePermissionIfPending out of daemon.ts.

Also collapses the duplicated sha256-hex idiom into utils.sha256Hex, now that both consumers exist (hashPrompt from #126, the config fingerprint from #124).

Purpose with #126: #128's diff on this file reads as a type swap (OTel Span fields to SDK handles), not an opaque new file.

Test plan: npm run check

🤖 Generated with Claude Code

Verbatim move of SessionState, the tracker types (PendingToolCall,
SubagentTracker, TeamMember, LoadedInstruction), SubagentTracking,
newSessionState, and resolvePermissionIfPending. Also dedupes the
sha256-hex idiom into utils.sha256Hex now that it has two consumers
(hashPrompt + the config fingerprint). No behavior change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@rgao-coreweave
rgao-coreweave marked this pull request as ready for review July 17, 2026 18:20
@rgao-coreweave
rgao-coreweave requested a review from a team as a code owner July 17, 2026 18:20

@drtangible drtangible left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rgao-coreweave
rgao-coreweave merged commit f87b584 into 109-05-session-helpers Jul 17, 2026
4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants