Skip to content

refactor(pi): remove the unused queue and pending approval reads - #2

Merged
aripiprazole merged 1 commit into
mainfrom
claude/remove-unused-session-reads
Oct 14, 2026
Merged

aripiprazole merged 1 commit into
mainfrom
claude/remove-unused-session-reads

Conversation

@aripiprazole

Copy link
Copy Markdown
Collaborator

Purpose

workspace.queue() and workspace.pendingApprovals() had no callers in src. Only their own test used them. The session view already gets approvals and queued messages from the bootstrap snapshot and live frames. This removes both reads, their schemas, the matching fixture endpoints, and the fixture's queue list, which was never filled.

A coverage audit of the suite found this. The other test files that look redundant by line coverage were kept. Mutation checks showed they are the only tests that guard config precedence, error redaction, token renewal, replay and revocation.

Verification

  • bun run check on Bun 1.4.2: format, lint, typecheck and build pass. 121 tests pass and 0 fail.

Nothing in src called workspace.queue() or workspace.pendingApprovals(). Only their own test did. The session view gets approvals and queued messages from the bootstrap snapshot and live frames.
@aripiprazole
aripiprazole merged commit aa27595 into main Oct 14, 2026
2 checks passed
@aripiprazole
aripiprazole deleted the claude/remove-unused-session-reads branch October 14, 2026 12:49
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