Fix LiteLLM context budgets and direct computer use

Keep efficient context windows separate from expanded maxima throughout discovery, display and provider budgets. Expose correlated computer-use requests and actions with existing permissions, preserve screenshots as images, and retain them across checkpoints, compaction and explicit history recall.

Validation: cargo build on Linux passed. Added focused regression coverage; test execution and native GUI verification remain outside this CLI build-only workflow.
This commit is contained in:
Ryan Ward
2026-10-22 14:25:21 +00:00
parent d5fa711e5c
commit f6c6434e5e
30 changed files with 1176 additions and 101 deletions
+2
View File
@@ -533,6 +533,7 @@ fn lrc_snapshot_follow_up_uses_the_cli_monitor_prompt_and_tools() {
),
};
let snapshot_tool_result = ToolResult {
images: Vec::new(),
call_id: "run-call".to_string(),
content: result.result.model_content(),
status: ToolResultStatus::Success,
@@ -842,6 +843,7 @@ fn normalized_tool_outcomes_are_the_only_action_results_sent_to_rig() {
let tool_results = statuses
.iter()
.map(|(call_id, status, _)| ToolResult {
images: Vec::new(),
call_id: (*call_id).to_string(),
content: format!("normalized-{call_id}"),
status: *status,