Gemini CLI PR adds tool_call_id to BeforeTool/AfterTool hooks for precise call pairing
ayam04 · ghdev · 2026-11-27
PR #30491 on google-gemini/gemini-cli adds an optional toolcallid field to BeforeTool and AfterTool hook inputs, letting hooks pair a call's before/after events by the same id carried in the model's functionCall/functionResponse (genai.tool.call.id), instead of fragile tool-name + arguments + arrival-order matching. The change is purely additive optional-param threading through hookEventHandler, hookSystem and ToolExecutor, with no breaking impact on existing hooks or tests.
More from coding & agent
- After Anthropic ported Messages API to Rust: AI may rewrite everything in low-level code — bendee983 · 2026-11-28
- LlamaIndex Open-Sources OCRia-1 Weights, 4B SOTA OCR Model Runs on a Mac mini — llama_index · 2026-11-28
- Voice Agents = Text Agent + 3 Parts; Median 700ms Response Latency — adnan_hashmi · 2026-11-28
- Gx: A 13MB Rust App to Run Claude, Codex & OpenCode Side by Side — sull · 2026-11-28
- MedExAgent trains LLM agents to navigate clinical diagnosis amid noisy data and costly exams — mdredze · 2026-11-28
- Hugging Face Agents Course breaks down the Thought-Action-Observation cycle — adnan_hashmi · 2026-11-28