Commit Graph

2564 Commits

Author SHA1 Message Date
Adam Weidman 05746666b6 fix(core): add optional chaining for optional abortSignal in RemoteSessionInvocation 2026-05-13 13:45:49 -04:00
Adam Weidman 44d75ddee0 fix(core): use SubagentState enum in remote session invocation tests 2026-05-12 23:49:49 -04:00
Adam Weidman 3ede28c6be test(core): add tests for composite session key in RemoteSessionInvocation 2026-05-12 17:50:36 -04:00
Adam Weidman d398cdb59c docs(core): update comments for composite session key in RemoteSessionInvocation 2026-05-12 17:31:25 -04:00
Adam Weidman 25e2673cd2 feat(core): use composite key for remote session state 2026-05-12 17:28:56 -04:00
Adam Weidman 42ac315d87 refactor(core): use SubagentState enum in RemoteSessionInvocation 2026-05-12 15:37:09 -04:00
Adam Weidman 3f97e7e7a4 feat(core): add RemoteSessionInvocation — session-based remote agent invocation
New invocation class that delegates to RemoteSubagentSession instead of
directly managing A2A client streaming. Existing RemoteAgentInvocation is
untouched — this will be wired in behind a feature flag in a later PR.

Key behaviors:
- Static sessionState map persists A2A contextId/taskId across invocations
- Subscribes to session message events for live SubagentProgress updates
- Detects post-getResult abort and surfaces proper error state
- Includes partial output in error display via getLatestProgress()
- Properly cleans up abort listeners and subscriptions in finally block

Also adds initialState param and getSessionState() to
RemoteSubagentProtocol/RemoteSubagentSession for cross-invocation
state persistence.
2026-05-12 15:37:09 -04:00
Adam Weidman c236bc3c4d refactor: address review follow-ups for local protocol 2026-05-12 15:37:08 -04:00
Adam Weidman 71fef59bcb refactor: address review comments for local protocol 2026-05-12 15:37:08 -04:00
Adam Weidman 34d41c3e8d refactor(core): use SubagentState enum in LocalSessionInvocation 2026-05-12 15:36:36 -04:00
Adam Weidman 0b3b5abca3 test(core): verify warning log in content-utils fallback test 2026-05-12 15:20:33 -04:00
Adam Weidman 696bf57ba6 Merge remote-tracking branch 'origin/main' into agent-session/local-invocation 2026-05-12 15:18:02 -04:00
Adam Weidman e5b39b319e fix(core): restore fallback serialization in content-utils to avoid throwing 2026-05-12 15:03:17 -04:00
Adam Weidman c987b99394 refactor(core): introduce SubagentState enum for progress (#26934) 2026-05-12 18:58:25 +00:00
Adam Weidman 7bf9d0152f Add safe string handling for activity data properties
Use typeof check and trim to avoid displaying 'undefined' for missing properties in THOUGHT_CHUNK, TOOL_CALL_START, TOOL_CALL_END, and ERROR events.

TAG=agy
CONV=d4b1d79a-226d-4301-8d60-bdb5d4701569
2026-05-12 14:46:06 -04:00
Adam Weidman 666d1d2d52 fix(core): fix imports in local-session-invocation test 2026-05-12 14:46:06 -04:00
Adam Weidman a10284350f feat(core): add LocalSessionInvocation — session-based local subagent invocation
New invocation class that delegates to LocalSubagentSession instead of
directly using LocalAgentExecutor. Existing LocalSubagentInvocation is
untouched — this will be wired in behind a feature flag in a later PR.
2026-05-12 14:46:06 -04:00
Adam Weidman aa1d1c6524 refactor: address review follow-ups for local protocol 2026-05-12 14:46:06 -04:00
Adam Weidman dc3c7994d1 refactor: address review comments for local protocol 2026-05-12 14:46:06 -04:00
Adam Weidman 405b02e4b0 refactor(core,cli): fix missed enum usages in SubagentProgressDisplay and tests 2026-05-12 14:45:11 -04:00
kevinjwang1 27a39b04b0 Enable NumericalRouter when using dynamic model configs (#26929) 2026-05-12 18:06:21 +00:00
Sandy Tao ebe15553a9 Exclude extension context from skill extraction agent (#26879) 2026-05-12 10:45:19 -07:00
Adam Weidman 435c483b3a refactor(core): update remaining files to use SubagentState enum 2026-05-12 13:45:17 -04:00
Adam Weidman 086337784a refactor(core): introduce SubagentState enum for progress 2026-05-12 13:44:28 -04:00
Yulong Wu bc730b2c0f fix (telemetry): inject quota_project_id to prevent fallback to default oauth client (#26698)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
2026-05-12 17:02:15 +00:00
joshualitt 07792f98cd feat(context): Introduce adaptive token calculator to more accurately calculate content sizes. (#26888) 2026-05-12 15:51:20 +00:00
Coco Sheng 7a9ed4c20a fix: respect explicit model selection after Flash quota exhaustion (#26759) (#26872) 2026-05-12 14:26:50 +00:00
Eswar809 9f759f97a2 fix(core): ignore .pak and .rpa game archive formats by default (#26884)
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
2026-05-11 21:58:08 +00:00
Daniel Weis e1b3ce5b36 revert 6b9b778d82 (#26893) 2026-05-11 21:07:54 +00:00
Suhaan Raqeeb Khavas 8e58df72c6 fix: prevent EISDIR crash when customIgnoreFilePaths contains directories (#19868) (#19898)
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
2026-05-11 20:46:08 +00:00
Coco Sheng 1340c96071 fix(core): handle malformed projects.json in ProjectRegistry (#26885) 2026-05-11 20:19:01 +00:00
Daniel Weis f8198a25d8 fix(routing): Refactor tool turn handling for the conversation history in NumericalClassifierStrategy to prevent 400 Bad Request (#26761) 2026-05-11 20:09:38 +00:00
Aryan Singh ecfaac2dc7 fix(cli): prevent duplicate SessionStart systemMessage render (#25827)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
2026-05-11 16:44:04 +00:00
joshualitt 8a3fde4c33 fix(context): Change snapshotter model config. (#26745) 2026-05-11 15:06:55 +00:00
joshualitt 1a894c18ea feat(context): Improvements to the snapshotter. (#26655) 2026-05-08 23:54:44 +00:00
Adam Weidman 54f1e8c6d7 feat(core): add RemoteSubagentProtocol behind AgentProtocol (#25303) 2026-05-08 22:48:17 +00:00
krishdef7 f51391a0f2 fix(mcp): treat GET 404 as 405 in StreamableHTTPClientTransport (#24847)
Co-authored-by: Coco Sheng <cocosheng@google.com>
Co-authored-by: Spencer <spencertang@google.com>
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
2026-05-08 22:16:08 +00:00
Sri Pasumarthi 1238dcfe91 feat(acp/core): prefix tool call IDs with tool names to support tool rendering in ACP compliant IDEs. (#26676) 2026-05-08 21:21:54 +00:00
Coco Sheng 90e7155971 ci: implement codebase-aware effort level triage (#26666) 2026-05-08 20:48:54 +00:00
Adam Weidman 014bfeb89b feat(core): add LocalSubagentProtocol behind AgentProtocol (#25302) 2026-05-08 19:28:16 +00:00
Aishanee Shah 5890f50496 fix(core): resolve parallel tool call streaming ID collision (#26646) 2026-05-08 19:14:23 +00:00
Daniel Weis 6b9b778d82 fix: resolve "function response turn must come immediately after function call" error (#26691)
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
2026-05-08 19:01:24 +00:00
Aishanee Shah f86e0ee418 fix(core): throw explicit error on dropped tool responses (#26668) 2026-05-08 18:36:39 +00:00
joshualitt 01635ddb83 fix(context): implement loose boundary policy for gc backstop. (#26594) 2026-05-08 17:36:57 +00:00
Adam Weidman 12c8469b34 refactor(core): agent session protocol changes (#26661) 2026-05-08 17:12:54 +00:00
AK ebeea7570d fix(core): cache model routing decision in LocalAgentExecutor (#26548) 2026-05-08 00:18:22 +00:00
Sandy Tao 16e345831b fix(cli): hide /memory add subcommand when memoryV2 is enabled (#26605) 2026-05-07 20:48:12 +00:00
Daniel Weis ac31e80984 fix(routing): fix resolveClassifierModel argument mismatch in ApprovalModeStrategy (#26658)
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
2026-05-07 19:34:14 +00:00
Coco Sheng 49456e4e15 fix(core): preserve system PATH in Git environment to fix ENOENT (#25034) (#26587) 2026-05-07 18:24:49 +00:00
Tommaso Sciortino a809bc7c51 don't wrap args unnecessarily (#26599) 2026-05-06 23:20:47 +00:00