honcho/honcho-cli/tests
Aakash Kattelu aaef4f06bd fix(cli): read next-page hint scope from effective flag overrides
Addresses the second CodeRabbit pass on #1006.

`-w`/`-p` parse at group and top level as well as command level, all landing
in `_global_overrides`, so reading the command-level params dropped the scope
from `honcho session -w ws2 view ...`. The hint now reads the effective
overrides via a new `get_flag_overrides()`, which deliberately excludes
environment and config values since those resolve the same way on the next run.

Also shell-quotes the hint's identifiers with `shlex.join`. Note this is
hardening rather than a live injection fix: the API constrains IDs to
`^[a-zA-Z0-9_-]+$`, so an ID carrying a space or metacharacter fails the fetch
before any hint is printed. `validate_resource_id` is looser than the server
though, so quoting is the cheaper invariant to hold locally.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 17:47:41 -04:00
..
__init__.py feat: adding honcho-cli package (#424) 2026-04-20 13:27:35 -04:00
conftest.py feat(cli): add device code oauth login for honcho servers (#891) 2026-07-17 13:16:55 -07:00
test_commands.py fix(cli): read next-page hint scope from effective flag overrides 2026-08-10 17:47:41 -04:00
test_common.py feat(cli): add device code oauth login for honcho servers (#891) 2026-07-17 13:16:55 -07:00
test_config.py feat(cli): add device code oauth login for honcho servers (#891) 2026-07-17 13:16:55 -07:00
test_oauth.py feat(cli): add device code oauth login for honcho servers (#891) 2026-07-17 13:16:55 -07:00
test_output.py fix(cli): carry invocation scope into the next-page hint 2026-08-10 17:22:39 -04:00
test_validation.py feat: adding honcho-cli package (#424) 2026-04-20 13:27:35 -04:00