Repository navigation
Conversation
…eturns no result A fork that exits without a result frame was reported with the last line of its stderr. The CLI prints diagnostics on every run, failed or not ([claude-code:unrecognized_model] for a gateway's model alias, the claude.ai connectors warning beside an API key), so the logged reason was a diagnostic (server.log 2026-11-11: three summaries 'failed: [claude-code:unrecognized_model]', one 'failed: ⚠ claude.ai connectors are disabled'). Take the last line that is not a diagnostic, from stderr and then stdout, and fall back to the exit code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 요약
keep-warm ping과 warm summary(
claude -p ... --fork-session)가 결과 JSON 없이 끝나면, 실패 이유를 stderr 마지막 줄로 만들었습니다. 이 줄이 CLI 진단 문구일 때는 실패 이유가 아닌 문구가 로그에 남습니다. 이제 진단 줄([claude-code:...],⚠ ...)과 ANSI 색 코드를 건너뛰고 실패를 말하는 마지막 줄(stderr → stdout 순)을 쓰고, 그런 줄이 없으면 종료 코드를 보여 줍니다.server/drivers/claude-keepwarm.ts:forkFailureLine()추가,parseKeepWarmResult가 사용server/drivers/claude-warm-summary.ts:parseWarmSummaryResult가 같은 함수를 사용(같은 로직의 두 번째 복사본 제거)이유
~/Library/Logs/openmausbot/server.log(2026-11-11)의 warm summary 실패 4건은 모두 진단 문구만 남기고, 실제 원인을 가렸습니다.CLI 2.1.332 번들에서
[claude-code:unrecognized_model]은 모든 모델 호출 시작 때_qe(model, querySource)가 한 번 찍는 진단이고, 오류가 아닙니다. 게이트웨이 별칭(group/cheap-first)이면 성공하는 호출에서도 같은 줄이 stderr에 나옵니다(아래 직접 실행). 그래서 실패한 fork의 마지막 stderr 줄이 이 진단이면, 로그는 "모델이 인식되지 않아 실패했다"고 잘못 읽힙니다.직접 확인한 것 (2026-12-02, CLI 2.1.332, 로컬 magpie 게이트웨이)
--model group/cheap-first(일반 호출)[claude-code:unrecognized_model] {"model":"group/cheap-first","query_source":"sdk"}--model 'group/cheap-first[1m]'[claude-code:unrecognized_model] {"model":"group/cheap-first[1m]","query_source":"sdk"}--resume <id> --fork-session, 프롬프트/compacttype":"result",local_command":"compact"[claude-code:unrecognized_model] {"model":"group/cheap-first","query_source":"compact"}[1m]접미사가 붙어도 호출은 성공합니다. 접미사가 실패 원인이라는 가설은 재현되지 않았습니다(그래서 접미사 처리는 건드리지 않았습니다).검증
npx vitest run server/drivers/claude-keepwarm.test.ts server/drivers/claude-warm-summary.test.ts→ 2 파일, 15 테스트 통과claude-keepwarm,claude-warm-summary,warm-summary,cache-keepwarm,host/warm-summary-host) → 8 파일, 86 통과 1 skipnpx tsc -p tsconfig.server.json오류 없음, pre-push 검사 4개 파일 통과Before / After
같은 입력(위 11-11 로그의 stderr 마지막 줄)을
origin/main(5e466f7)과 이 브랜치의 파서에 넣은 결과입니다.⚠ claude.ai connectors are disabled ...한 줄, 종료 코드 1the summary failed: ⚠ claude.ai connectors are disabled because ANTHROPIC_API_KEY ...the summary exited 1[claude-code:unrecognized_model] {...}한 줄, 종료 코드 1the summary failed: [claude-code:unrecognized_model] {"model":"group/cheap-first[1m]","query_source":"compact"}the summary exited 1API Error: 404 model not found다음에 위 진단 줄the summary failed: [claude-code:unrecognized_model] {...}the summary failed: API Error: 404 model not foundkeep-warm ping도 같은 함수를 쓰므로
the ping failed: .../the ping exited 1로 똑같이 바뀝니다.범위 밖
[1m]접미사 제한, keep-warm 끄기는 건드리지 않았습니다. 접미사는 위 실행에서 실패를 일으키지 않았습니다.