Skip to content

feat(cli): meta.route on every browser-touching command (iter-134) - #182

Merged
ractive merged 3 commits into
mainfrom
iter-134/meta-route-all-commands
Aug 12, 2026
Merged

feat(cli): meta.route on every browser-touching command (iter-134)#182
ractive merged 3 commits into
mainfrom
iter-134/meta-route-all-commands

Conversation

@ractive

@ractive ractive commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rolls out connection_meta::merge_route (iter-128 Theme D) from just network/navigate --with-network to the remaining ~30 browser-touching commands, so meta.route ("daemon"/"direct") is present and correct on every one, unconditionally (not gated by --verbose).
  • navigate's plain run(), click::run_core, type_text::run_core, and wait::run_core didn't expose via_daemon to their run() wrappers — their signatures now return it alongside the result (wait reports None for its --sleep-ms short-circuit, which never opens a connection).
  • screenshot and tabs always report "direct" since they never route through the daemon (screenshot always uses connect_direct; tabs uses a raw RdpConnection::connect that bypasses the daemon entirely).
  • sources.rs turned up during the final envelope-construction audit missing a meta.connection block altogether — added merge_route there too (the missing connection block is a separate pre-existing gap, left out of scope).
  • Documents the wider rollout in --help (top-level OUTPUT FORMAT block + network's long_about).

Test plan

  • cargo fmt, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace -q all clean
  • New live test live_134_meta_route_all_commands (click/eval/screenshot/dom, both --no-daemon and daemon-routed modes) passes against real headless Firefox
  • cargo run -p xtask -- check-iteration-ready --plan kb/iterations/iteration-134-meta-route-all-commands.md --base origin/main — 10/10 PASS (with FF_RDP_LIVE_TESTS=1 for the dogfood-script gate)

🤖 Generated with Claude Code## Claims vs code
<generated 2026-08-12T05:21:40Z by ralph-loop>

  • live_134_meta_route_all_commands → ✅ matched in diff
  • RdpConnection::connect → ✅ matched in diff
  • #10 → ❌ no match in diff

1 claim(s) had no matching evidence. Add the code, soften the
commit message, or annotate with // allow-claim-miss: <symbol> and a reason.

ractive and others added 3 commits August 11, 2026 20:49
iter-128 Theme D wired connection_meta::merge_route at only the two
commands central to that iteration (network, navigate --with-network).
This rolls it out to the remaining ~30 commands so meta.route
("daemon"/"direct") is present on every browser-touching command's
JSON envelope without --verbose, matching dogfood-62 finding #10.

navigate's plain run()/run_core(), click::run_core, type_text::run_core,
and wait::run_core didn't expose via_daemon to their run() callers, so
their signatures changed to return it alongside the result (wait's
--sleep-ms short-circuit reports None — it never opens a connection).
screenshot and tabs always report "direct": screenshot always uses
connect_direct (the daemon's watcher subscription breaks its two-step
capture protocol) and tabs bypasses ConnectedTab/the daemon entirely
via a raw RdpConnection::connect. sources.rs turned up during the
final envelope-construction audit missing a meta.connection block
entirely; only merge_route was added there, in scope for this
iteration.

Adds live_134_meta_route_all_commands (click/eval/screenshot/dom,
both connection modes) as the plan's AC.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The top-level OUTPUT FORMAT block and network's long_about only
described meta.route from iter-128, when it covered just network and
navigate --with-network. Note the iter-134 expansion to every
browser-touching command.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…cedent

DEC-027 (already on main) resolves Theme B's open opt-in-vs-default
question before iter-143 starts, so tick that AC and drop the
"decide first" framing. Also point Theme A at iter-134's merge_route
helper as the established pattern to mirror for meta.source.
@ractive
ractive merged commit fa0901d into main Aug 12, 2026
10 checks passed
@ractive
ractive deleted the iter-134/meta-route-all-commands branch August 12, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant