Skip to content

feat(status): re-apply status scan parallelization from v2026.3.1/v2026.3.2#2253

Merged
alexey-pelykh merged 1 commit intomainfrom
fix/2205-status-scan-parallelization
Apr 10, 2026
Merged

feat(status): re-apply status scan parallelization from v2026.3.1/v2026.3.2#2253
alexey-pelykh merged 1 commit intomainfrom
fix/2205-status-scan-parallelization

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Re-applies upstream performance and feature improvements to status.scan.ts, status.command.ts, status.summary.ts, and sessions.ts that were discarded during PR #2191 wholesale restoration.

  • Performance: DeferredResult<T> pattern, scanStatusJsonFast dedicated JSON fast path, parallelized async probes (tailscale, update, agent, summary), Promise.all for scan + security audit in JSON mode
  • Features: lookupContextTokens per-model context window resolution (fixes hardcoded 200K), configured model display replacing "unknown", installKind/gitTag/gitBranch in channel info, formatGitInstallLabel row, bootstrapPendingCount in agents display, thinking/reasoning/elevated flags, config passthrough in getStatusSummary
  • Code quality: resolveGatewayProbeSnapshot and resolveChannelsStatus DRY extractions, groupChannelIssuesByChannel replacing inline IIFE, resolveSessionStoreTargetsOrExit replacing try/catch

No gutted subsystem code re-introduced (no memory, SecretRef, Pi-embedded, model-catalog, skills, or sandbox references).

Closes #2205

Test plan

  • pnpm tsgo — zero type errors in changed files
  • pnpm lint — zero warnings/errors
  • pnpm format:fix — clean
  • pnpm test — 694 test files, 5949 tests pass, 0 failures
  • Gutted-code leakage review — no memory/SecretRef/Pi-embedded imports

🤖 Generated with Claude Code

…26.3.2 (#2205)

Re-apply upstream performance and feature improvements that were
discarded during PR #2191 wholesale restoration:

Performance:
- DeferredResult<T> pattern for parallelizing async operations
- scanStatusJsonFast dedicated fast path for --json mode
- Parallelized tailscale, update, agent, and summary probes
- Security audit runs in parallel with scan in JSON mode

Features:
- lookupContextTokens resolves per-model context windows (fixes
  hardcoded 200K for non-200K models)
- Configured model display replaces "unknown" in status summary
- installKind/gitTag/gitBranch in update channel display
- formatGitInstallLabel row in status overview
- bootstrapPendingCount in agents display
- thinking/reasoning/elevated level flags in session data
- config passthrough in getStatusSummary avoids redundant loadConfig

Code quality:
- resolveGatewayProbeSnapshot DRY extraction
- resolveChannelsStatus DRY extraction
- groupChannelIssuesByChannel replaces inline IIFE
- resolveSessionStoreTargetsOrExit replaces try/catch pattern

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 10, 2026 22:18
@alexey-pelykh alexey-pelykh merged commit ddd98f0 into main Apr 10, 2026
10 checks passed
@alexey-pelykh alexey-pelykh deleted the fix/2205-status-scan-parallelization branch April 10, 2026 22:23
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.

Re-apply status scan parallelization from v2026.3.1/v2026.3.2

1 participant