ktx/packages/cli/test/context
Andrey Avtomonov 6837ab253d
fix(cli): align ingest step counter with SDK num_turns (#225)
The Claude Code runtime counted every SDKAssistantMessage with
parent_tool_use_id === null as a step, but the SDK emits extra messages
within a single num_turns round-trip — `stop_reason: 'pause_turn'`
continuations and errored partials it retries internally. The local
counter then outran maxTurns and the ingest HUD rendered confusing
ratios like `step 69/40`.

Filter both cases in collectResult so stepIndex tracks num_turns and
stays bounded by the work-unit stepBudget.
2026-05-28 02:09:53 +02:00
..
connections test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
core test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
daemon test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
index-sync test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
ingest fix(ingest): attribute historic-sql evidence writes in bundle report (#220) 2026-05-26 12:21:53 +02:00
llm fix(cli): align ingest step counter with SDK num_turns (#225) 2026-05-28 02:09:53 +02:00
mcp test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
memory test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
project test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
prompts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
scan test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
search test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
skills test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
sl test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
sql-analysis test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
test test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
tools test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
wiki test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00