fix: keep agents on the latest request after tool search - #6656
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Comment |
Tiny Sweeper reviewTiny Sweeper reviewed this change across 6 lane(s) and found 0 active actionable finding(s). Detailed lane evidence and any incomplete work are listed below. State: Ready for maintainer review Review snapshot
Completeness: Complete What changedThe review could not produce a supported behavioral summary; inspect the cited changed surface and lane details below. FeaturesNone identified with supported citations. TestsNo supported feature-to-test mapping was produced. Test execution is not inferred. FindingsNo active actionable findings. Before mergeNone. Agent review detailscritique
security
tests
commits
description
e2e
Evidence and run details
|
Summary
Problem
The supplied OpenHuman transcript shows “fetch my latest email” and a later Composio request.
tool_searchfoundGMAIL_FETCH_EMAILSand returned its schema, but DeepSeek V4 Flash answered “Hey! What's up?” after the tool result. The model-call journal contains the full email request and search result; the response's reasoning and text refer to the initial greeting.Solution
The fix lives in tinyinference and TinyAgents, which own prompt-guided message conversion and the agent loop. This PR pins the updated TinyAgents commit. The outgoing request repeats the latest real text user request immediately after a terminal tool-result turn. The durable transcript is unchanged.
tinyhumansai/tinyinference#29 and tinyhumansai/tinyagents#216 have merged. The pinned commits are available upstream; this PR is ready for review.
Submission Checklist
Impact
Desktop, CLI, TUI, and library agents using a text tool dialect can remain focused on the latest request after tool results. One extra user-role reminder is sent to the provider on those continuations, increasing prompt tokens by the length of the current text request. The persisted transcript and tool schema are unchanged.
Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
Validation Run
pnpm --filter openhuman-app format:check— N/A: no app changespnpm typecheck— N/A: no TypeScript changescargo check -p openhumanpassedValidation Blocked
command:N/Aerror:N/Aimpact:N/A: upstream dependencies mergedBehavior Changes
Parity Contract
Duplicate / Superseded PR Handling
Summary by CodeRabbit