strix/tests
Sean Kim 370e945da2 fix(todo): unwrap JSON string-scalar ids (addresses review feedback)
The first pass routed every non-array input through the literal-token
path, which dropped the surrounding quotes of a JSON string scalar — so a
caller passing '"a3f9c2"' looked the id up *with* quotes and missed the
real todo (a regression from the prior json.loads behaviour, flagged by
the Greptile review on #663).

Handle a parsed `str` by unwrapping it, while still keeping numeric-looking
bare ids literal (json.loads yields a float/inf for those, not a str).
The string / comma / single-token cases resolve into one token list, which
also keeps the function within the return-count lint limit. Adds a
regression test for the quoted-scalar and empty-string inputs.
2026-07-03 20:16:17 -07:00
..
__init__.py Add configurable token / cost usage limits (#576) 2026-06-22 11:17:08 -04:00
test_config_loader.py test: add unit tests for config loader (strix/config/loader.py) (#596) 2026-06-30 04:31:29 -07:00
test_cost_tracking.py fix: report cost for streamed OpenRouter calls (#634) 2026-07-03 00:10:28 -04:00
test_execution.py Add configurable token / cost usage limits (#576) 2026-06-22 11:17:08 -04:00
test_hooks.py Add configurable token / cost usage limits (#576) 2026-06-22 11:17:08 -04:00
test_inputs.py fix(core): collapse child agent initial input into a single user message (#589) 2026-06-29 06:51:47 -07:00
test_local_sources.py Support large target repos with with bind-mount option. (#577) 2026-06-22 12:41:42 -04:00
test_notes.py fix: avoid note ID collisions (#630) 2026-07-02 22:54:44 -04:00
test_runner_rate_limit.py fix: stop gracefully with resume hint on persistent RateLimitError (#261) (#593) 2026-06-29 07:31:54 -07:00
test_sarif.py feat(report): SARIF 2.1.0 emitter for CI / code-scanning integration (#626) 2026-07-03 10:43:31 -04:00
test_session_entries.py Support large target repos with with bind-mount option. (#577) 2026-06-22 12:41:42 -04:00
test_state_repo_context.py feat(report): SARIF 2.1.0 emitter for CI / code-scanning integration (#626) 2026-07-03 10:43:31 -04:00
test_todo.py fix(todo): unwrap JSON string-scalar ids (addresses review feedback) 2026-07-03 20:16:17 -07:00