refactor(client-runtime): remove unused subagent selectors - #9992
Effect Service Conventions: No issues found
All clear
Details
Note
Your check run agent prompt is: .macroscope/check-run-agents/effect-service-conventions.md
More information about how Check Run Agents work can be found in our Help Center.
The PR only deletes four unused exported helpers (workflowCardMembers, isSubagentActivityKind, isAgentAttributedToolActivity, isTimelineBypassActivity) from packages/client-runtime/src/state/subagentRuntime.ts and their tests. Verified no remaining consumers or barrel re-exports of those identifiers, and that the remaining OrchestrationThreadActivity type import is still used (line 464). No Effect service definitions, layers, runtimes, imports, or error types are created or modified, so no Effect service conventions apply. The only other changed file is a *.test.ts, which is excluded from this check's scope.
🔍 Agent activity — 3 tool calls
💭 Since this PR only removes code, I want to confirm the deleted functions in subagentRuntime.ts aren't referenced elsewhere before flagging any convention issue—this seems like straightforward dead code removal rather than a service migration needing consumer updates.
1. browse_code — Are the identifiers workflowCardMembers, isSubagentActivityKind, isAgentAttributedToolActivity, and isTimelineBypassActivity referenced anywhere in the repo (imports, re-exports in barrel files, usages)? List all files and lines.
2. browse_code — packages/client-runtime/src/state/subagentRuntime.ts
💭 This deletion looks clean with no Effect service convention issues. I want to double-check that the
OrchestrationThreadActivitytype import is still used elsewhere in the file since the check passed, and confirm the other named imports remain valid.
3. browse_code — In packages/client-runtime/src/state/subagentRuntime.ts at commit aac5cc9, is the imported type OrchestrationThreadActivity still used in the file body? Show the line numbers where it appears.
Agent Credits: 476 credits
Token usage: 58 uncached input · 4,575,133 cache-read input · 300,093 cache-write input · 14,682 output
Agent Credits may also include non-token charges from external tools such as web research.