Repository navigation
test(tui): probes that show what flags and settings do to the Python agent - #57
Merged
Merged
Conversation
This was referenced Oct 30, 2026
…agent flags_probe.py runs zypi once per command-line flag and lists what changes on the agent's side of the ACP wire (plan 1.P6, decision 8). settings_probe.py does the same for the settings page (decision 14): the rows, the permission question under remember_tool_approvals, the cursor row per default_selected_permission, [models].default, and the settings meant for the old runtime. wire_log_agent.py and context_spy_agent.py are the stand-in agents the probes use. No product code changes.
zy1233
force-pushed
the
test/tui-pty-settings-flags-probes
branch
from
October 31, 2026 02:51
a526a28 to
5152753
Compare
This was referenced Oct 31, 2026
Owner
Author
|
Stack #66, bottom to top: #58, #59, #56, #57, #60, #61, #62, #63, #64, #65. One atomic squash merge ( Position 4 of 10. Base: |
This was referenced Oct 31, 2026
Merged
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.
Summary
Two probes that answer plan decision 8 (command-line flags) and decision 14 (settings page) with measurements, not reading. No product code changes.
zypi gives the Python agent no argument and no variable but
PI_HOME. What a flag or a setting can change for the agent is therefore on the ACP wire or nowhere. Each probe runs zypi twice (without and with the flag or setting), with a logging proxy between zypi and the agent, and prints what is different.Evidence
Run against the v0.7.0 Linux binary (
7cb9e23, WSL2), mock LLM, throw-away home. The base run repeats itself ((no flag, second run): NO CHANGE).Flags (full run: 63 cases, 282 s). Not one of these changes the LLM call:
--allow--deny--allowedTools(a deny rule: the question is still asked),--reasoning-effort,--tools,--disallowed-tools,--disable-web-search,--agents,--max-turns,--verbatim,--output-format,--include-partial-messages,--json-schema,--oauth,--trust,--force-login_metaon the wire, which the agent does not read--rules/--append-system-prompt,--system-prompt-override/--system-prompt(the system prompt of the LLM call is the same),--no-plan,--no-subagents,--no-ask-user,--agent--worktree,--worktree-ref: the toast "Git worktree sessions are not supported in standard ACP mode"; the session starts in the main checkout--cwd,--debug/--debug-file,--no-alt-screen,--minimal, positional prompt, the always-approve family,--permission-mode,-m(a configured id),--session-idSettings (37 rows on the page):
ruff check .andruff format --check .pass.scripts/tests/test_tui_probes.py: 16 passed on Windows and on Linux (WSL2).Merge Danger
Door: two-way.
Blast Radius: scripts and one test file; nothing in
pi_agent_core, the packages ortui/.