Skip to content

fix: detect proxied Claude completion records#216

Merged
DeadWaveWave merged 1 commit intoDeadWaveWave:mainfrom
Xinyuexyyyyy:fix/claude-reverse-proxy-turn-complete
May 1, 2026
Merged

fix: detect proxied Claude completion records#216
DeadWaveWave merged 1 commit intoDeadWaveWave:mainfrom
Xinyuexyyyyy:fix/claude-reverse-proxy-turn-complete

Conversation

@Xinyuexyyyyy
Copy link
Copy Markdown
Contributor

Summary

  • Treat Claude transcript output_text blocks as assistant text so proxied/reverse-proxy-shaped Claude Code records can transition to standby.
  • Keep Claude tool_use and pause_turn stop reasons in working state instead of emitting an early completion.
  • Reuse structured text extraction for Claude last-message reads so completion-related actions can read proxy-shaped assistant output.

Validation

  • ./node_modules/.bin/vitest run tests/unit/contexts/sessionTurnStateDetector.spec.ts tests/unit/contexts/sessionLastAssistantMessage.extractors.spec.ts
  • ./node_modules/.bin/tsc -b tsconfig.node.json tsconfig.web.json --noEmit

@DeadWaveWave DeadWaveWave merged commit aca608c into DeadWaveWave:main May 1, 2026
7 checks passed
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.

2 participants