Back
GoogleAntigravity
Pre-tool argument modification, synchronous lifecycle hooks, RunCommandConfig timeouts, and step correlation…
AI summary
Written by AI from the official notes. Check them for exact details.The 0.1.13 release adds pre-tool argument modification, synchronous lifecycle hooks, and improved command execution configurations.
- Pre-tool lifecycle hooks can now modify input arguments before execution.
- Synchronous hook functions are now supported alongside asynchronous ones.
- Command execution settings are consolidated with configurable timeouts.
- Tool execution now includes step correlation IDs for better tracking.
- Early client disconnects no longer raise unhandled exceptions.
Why it matters: Developers using Gemini and Antigravity should update to enhance tool execution and error handling.
Full release notes7 changes
The 0.1.13 release introduces pre-tool argument modification capabilities in lifecycle hooks, adds native support for synchronous hook functions, and establishes structured command execution configuration with configurable execution timeouts. It also improves tool execution observability with step correlation IDs and enhances connection resilience during client disconnects.
- Pre-Tool Hook Argument Modification: Pre-tool lifecycle hooks can now sanitize, transform, or override tool input arguments before tool execution begins.
- Synchronous Hook Function Support: Lifecycle hook decorators now accept standard synchronous functions alongside asynchronous coroutines without raising runtime await errors.
- Structured Command Execution Configuration: Command execution settings are now consolidated under
RunCommandConfig, introducing configurable timeouts that default to 10 minutes (600 seconds) alongside daemon execution controls. - Tool Lifecycle Step Correlation:
ToolResultandToolExecutionErrorevent payloads now includestep_id, enabling end-to-end tracking and correlation of tool invocations across trajectory steps. - VS Code Debugging Configuration: Updated
setup_vscode_debugging.shto target the canonicalgetting_started/hello_worldstarter example and explicitly configure Gemini Developer API defaults. - Synchronous Hook Decorator Execution: Fixed a runtime
TypeErrorwhen decorating synchronous functions with@pre_turn,@post_tool_call, and other lifecycle hooks by verifying awaitability before awaiting hook responses. - LiteRT Early Client Disconnects: Suppressed unhandled
ConnectionResetError,ConnectionAbortedError, andBrokenPipeErrorexceptions when clients disconnect early from local LiteRT server connections.