gemini-cli[bot]
7c0603ce0a
# Fix Topic Marker Leakage and Address Reinjection Inquiry
...
This PR addresses issue #26237 where the text `[active topic]` would sometimes appear in the Gemini CLI output. It also addresses an inquiry regarding the necessity of active topic reinjection in the system prompt.
## Changes
- **Refactored Reinjection Format:** Changed the active topic reinjection in `PromptProvider.ts` from bracketed text `[Active Topic: ...]` to XML tags (`<active_topic>...`</active_topic>`). XML tags are more clearly structural metadata and less likely to be echoed as conversational text by the model.
- **Added Explicit Instructions:** Updated `mandateTopicUpdateModel` in both `snippets.ts` and `snippets.legacy.ts` to include a clear negative constraint: "Never include topic markers, title text, or the active topic marker (e.g. `[active topic]` or `<active_topic>`) in your chat responses."
- **Updated Tests:** Verified the new format in `promptProvider.test.ts`.
## Rationale for Reinjection
Regarding the inquiry about why the active topic is reinjected:
The reinjection serves as a "pinned state" in the system prompt. While the model can theoretically remember the topic from the tool call history, reinjection ensures that this critical context is preserved even if the history is truncated or compressed during long sessions. It provides a stable anchor for the model to maintain continuity in its progress reporting.
## Impact
- Resolves the reported leakage of topic markers in chat responses.
- Improves the reliability of topic-based progress narration.
2026-04-29 23:41:51 +00:00
Stephen Eckels
a2d10b7b99
Allow non-https proxy urls to support container environments ( #26234 )
...
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com >
2026-04-29 23:12:03 +00:00
gemini-cli[bot]
fa1a7c10bd
# Fix: Inconsistent Case-Sensitivity in GrepTool ( #26235 )
...
Co-authored-by: gemini-cli[bot] <gemini-cli[bot]@users.noreply.github.com>
2026-04-29 22:59:58 +00:00
Abhijit Balaji
49988fc05c
fix(agent): prevent exit_plan_mode from being called via shell ( #26230 )
2026-04-29 22:22:21 +00:00
lp-peg
2194da2b02
Respect logPrompts flag for logging sensitive fields ( #26153 )
...
Co-authored-by: David Pierce <davidapierce@google.com >
Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com >
2026-04-29 21:43:34 +00:00
Adam Weidman
3aedbbc067
fix(core): distinguish fallback chains and fix maxAttempts for auto vs explicit model selection ( #26163 )
2026-04-29 20:23:37 +00:00
Adib234
99235fc59d
fix(core): reduce default API timeout to 60s and enable retries for undici timeouts ( #26191 )
2026-04-29 20:05:45 +00:00
Adib234
3bc56d0ef5
test(core): add regression test for issue for ToolConfirmationResponse ( #26194 )
2026-04-29 17:51:09 +00:00
Abdul Tawab
011c0f9bc0
feat(cli): add --delete flag to /exit command for session deletion ( #19332 )
...
Co-authored-by: David Pierce <davidapierce@google.com >
2026-04-29 17:20:57 +00:00
Adam Weidman
2cf0c75a04
fix(core): add explicit empty log guard in A2A pushMessage ( #26198 )
2026-04-29 17:06:18 +00:00
Adam Weidman
7ab932c8bf
test: fix failures due to antigravity environment leakage ( #26162 )
2026-04-29 14:51:43 +00:00
Sri Pasumarthi
c2e5b28e94
refactor(acp): modularize monolithic acpClient into specialized files ( #26143 )
2026-04-29 14:51:01 +00:00
Coco Sheng
6d99113936
fix(core): disconnect extension-backed MCP clients in stopExtension ( #26136 )
2026-04-28 22:46:17 +00:00
Abhi
fbd8aaad57
fix(core): add missing oauth fields support in subagent parsing ( #26141 )
2026-04-28 21:57:30 +00:00
gemini-cli-robot
8cfebb9e31
chore(release): bump version to 0.42.0-nightly.20260428.g59b2dea0e ( #26142 )
2026-04-28 13:28:48 -07:00
Adib234
f8603e990b
fix(cli): prevent automatic updates from switching to less stable channels ( #26132 )
2026-04-28 18:03:08 +00:00
Dev Randalpura
8e1cecac06
fix(ux): added error message for ENOTDIR ( #26128 )
2026-04-28 17:12:51 +00:00
Adib234
b0ffa3b51e
fix(core): handle non-string model flags in resolution ( #26069 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-04-28 17:11:15 +00:00
David Pierce
54b7586106
Update policy so transient errors are not marked terminal ( #26066 )
2026-04-28 16:01:27 +00:00
anj-s
c17400b830
fix(core): enforce parallel task tracker updates ( #24477 )
...
Co-authored-by: anj-s <anjalisridhar@google.com >
2026-04-27 23:17:26 +00:00
Dev Randalpura
820a4e3c92
fix(core): better error message for failed cloudshell-gca auth ( #26079 )
2026-04-27 21:05:08 +00:00
joshualitt
71f313b51a
feat(core): wire up the new ContextManager and AgentChatHistory ( #25409 )
2026-04-27 18:50:00 +00:00
Dev Randalpura
98aca28985
fix(ui): better error messages for ECONNRESET and ETIMEDOUT ( #26059 )
2026-04-27 17:17:04 +00:00
Sandy Tao
42587de733
feat(memory): persist auto-memory scratchpad for skill extraction ( #25873 )
2026-04-24 17:21:12 -07:00
Abhijit Balaji
2e0641c83b
feat(voice): implement real-time voice mode with cloud and local backends ( #24174 )
2026-04-24 21:29:38 +00:00
Emily Hedlund
ed469e492b
fix(core): fail closed in YOLO mode when shell parsing fails for restricted rules ( #25935 )
2026-04-24 19:26:59 +00:00
Abhijit Balaji
d4c5333dcf
feat(core,cli): add support for Gemma 4 models (experimental) ( #25604 )
2026-04-23 23:02:17 +00:00
Spencer
1f73ec70c5
perf(core): fix slow boot by fetching experiments and quota asynchronously ( #25758 )
...
Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com >
Co-authored-by: David Pierce <davidapierce@google.com >
Co-authored-by: Keith Schaab <keithsc@google.com >
Co-authored-by: Keith Schaab <keith.schaab@gmail.com >
Co-authored-by: Emily Hedlund <ehedlund@google.com >
2026-04-23 21:52:58 +00:00
Gal Zahavi
27927c55e5
feat(core): enhance shell command validation and add core tools allowlist ( #25720 )
...
Co-authored-by: David Pierce <davidapierce@google.com >
Co-authored-by: Keith Schaab <keithsc@google.com >
Co-authored-by: Keith Schaab <keith.schaab@gmail.com >
Co-authored-by: Emily Hedlund <ehedlund@google.com >
2026-04-23 20:26:01 +00:00
hsm207
ff28d55100
fix: fatal hard-crash on loop detection via unhandled AbortError ( #20108 )
...
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com >
2026-04-23 16:51:21 +00:00
Emily Hedlund
dba9b9a0ff
feat(cli): secure .env loading and enforce workspace trust in headless mode ( #25814 )
...
Co-authored-by: galz10 <galzahavi@google.com >
Co-authored-by: davidapierce <davidapierce@google.com >
2026-04-23 16:09:14 +00:00
gemini-cli-robot
d1c91f5267
chore(release): bump version to 0.41.0-nightly.20260423.gaa05b4583 ( #25847 )
2026-04-23 04:28:26 +00:00
Sandy Tao
aa05b4583d
fix(release): exclude ripgrep binaries from npm tarballs ( #25841 )
2026-04-22 21:01:45 -07:00
Sandy Tao
5318610c1d
fix(core): support jsonl session logs in memory and summary services ( #25816 )
2026-04-22 23:07:39 +00:00
Horizon_Architect_07
2a52611e71
Fix/command injection shell ( #24170 )
...
Co-authored-by: David Pierce <davidapierce@google.com >
2026-04-22 20:00:44 +00:00
xoma-zver
1c43deee07
fix(core): handle line endings in ignore file parsing ( #23895 )
...
Co-authored-by: cynthialong0-0 <82900738+cynthialong0-0@users.noreply.github.com >
2026-04-22 18:09:36 +00:00
Kishan Patel
0758a5eb28
fix(core): use dynamic CLI version for IDE client instead of hardcoded '1.0.0' ( #24414 )
...
Co-authored-by: cynthialong0-0 <82900738+cynthialong0-0@users.noreply.github.com >
2026-04-22 16:43:48 +00:00
Sandy Tao
6edfba481f
refactor(memory): replace MemoryManagerAgent with prompt-driven memory editing across four tiers ( #25716 )
2026-04-22 01:21:55 +00:00
Adam Weidman
d6f88f8720
fix(core): remove duplicate initialize call on agents refreshed ( #25670 )
2026-04-21 20:17:21 +00:00
euxaristia
c47233a474
fix(core): disable detached mode in Bun to prevent immediate SIGHUP of child processes ( #22620 )
2026-04-21 20:01:28 +00:00
Coco Sheng
93a8d9001c
fix(cli): use newline in shell command wrapping to avoid breaking heredocs ( #25537 )
2026-04-21 19:12:50 +00:00
PRAS Samin
cdc5cccc13
feat: detect new files in @ recommendations with watcher based updates ( #25256 )
2026-04-21 18:35:14 +00:00
Mahima Shanware
a4e98c0a4c
fix(core): resolve nested plan directory duplication and relative path policies ( #25138 )
2026-04-21 18:20:57 +00:00
Spencer
c260550146
feat(telemetry): add flag for enabling traces specifically ( #25343 )
2026-04-21 18:07:32 +00:00
Muhammad Ahsan Farooq
ebebbbfc20
Fix/allow for session persistence ( #25176 )
2026-04-21 11:20:07 -07:00
Gordon Hui
27344833cb
feat(vertex): add settings for Vertex AI request routing ( #25513 )
2026-04-21 17:48:30 +00:00
Samee Zahid
1d383a4a8e
feat(cli): add streamlined gemini gemma local model setup ( #25498 )
...
Co-authored-by: Abhijit Balaji <abhijitbalaji@google.com >
Co-authored-by: Samee Zahid <sameez@google.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-04-20 23:57:56 +00:00
Sehoon Shon
0e5c5b6f49
fix(core): allow Cloud Shell users to use PRO_MODEL_NO_ACCESS experiment ( #25702 )
2026-04-20 17:29:58 +00:00
Sandy Tao
8573650253
feat(config): split memoryManager flag into autoMemory ( #25601 )
2026-04-18 00:08:02 +00:00
Christian Gunderman
b2f775921d
feat(core): enable topic update narration by default and promote to general ( #25586 )
...
Co-authored-by: JAYADITYA <96861162+JayadityaGit@users.noreply.github.com >
Co-authored-by: Jack Wotherspoon <jackwoth@google.com >
2026-04-17 17:49:32 +00:00