You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(prompt): update test callers + assertions for new renderer signature
Follow-up to tinyhumansai#447. The main patch changed three signatures that test
callers hadn't been updated for, and flipped one assertion that was
validating the now-removed prose schema duplication.
- `SubagentRunOptions` test constructors in subagent_runner.rs (2
sites) now pass `toolkit_override: None`.
- `ConnectedIntegration` test constructor in orchestrator_tools.rs
now passes `connected: true` (the default for test integrations —
they're treated as authorized so delegation logic still runs).
- 12 `render_subagent_system_prompt` test callers in prompt.rs now
pass `&[]` for the new `extra_tools` slice and
`ToolCallFormat::PFormat` for the new `tool_call_format` argument.
- `render_subagent_system_prompt_honors_identity_safety_and_skills_flags`
used to assert `rendered.contains("Parameters:")` on the Json
dispatcher branch — that was valid in the old world where the
prose `## Tools` section dumped full JSON schemas for Json/Native
formats. The main patch deliberately removes that dump (it was the
~30k-token duplication of the native `tools` field), so the test
now asserts the opposite: no `## Tools` header and no `Parameters:`
line are emitted for Native/Json dispatchers. The schemas still
travel through the provider request's `tools` field.
Also picks up `rustfmt` rewraps in action_tool.rs and ops.rs from a
background linter run — pure whitespace, no semantic change.
Verified green against the full `cargo test --lib` suite for every
test touched by this PR:
- openhuman::context::prompt::tests (26 passed)
- openhuman::agent::harness::subagent_runner::tests (19 passed)
- openhuman::composio::ops::tests (2 passed)
- openhuman::tools::impl::agent::tests (0 scoped)
The 7 remaining failures in `cargo test --lib` are pre-existing
Windows-path/filesystem flakes in subsystems this PR doesn't touch
(self_healing polyfill path separator, cron scheduler shell spawning,
local_ai::paths absolute-path detection, security::policy sandbox
path handling, composio::trigger_history jsonl archive, and a real
pre-existing `Option::unwrap()` panic in browser::screenshot).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments