mirror of
https://github.com/usestrix/strix.git
synced 2026-10-29 06:32:26 +00:00
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_config_loader.py | ||
| test_cost_tracking.py | ||
| test_execution.py | ||
| test_hooks.py | ||
| test_inputs.py | ||
| test_local_sources.py | ||
| test_notes.py | ||
| test_runner_rate_limit.py | ||
| test_sarif.py | ||
| test_session_entries.py | ||
| test_state_repo_context.py | ||
| test_todo.py | ||