Sync upstream gemini-cli v0.1.21#398
Conversation
Co-authored-by: Allen Hutchison <adh@google.com>
Co-authored-by: christine betts <chrstn@uw.edu> Co-authored-by: Jacob Richman <jacob314@gmail.com> Co-authored-by: matt korwel <matt.korwel@gmail.com>
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
…o injection attacks (#6059)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
…jection attacks (#6098)
…not vulnerable to injection attacks (#6097)
…ot vulnerable to injection attacks (#6107)
…jection attacks (#6109)
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com> Co-authored-by: Ben Brandt <benjamin@zed.dev>
…t telemetry" (#6161)
Co-authored-by: matt korwel <matt.korwel@gmail.com>
Co-authored-by: elasticdotventures <brianh@elastic.ventures>
…/sync-gemini-cli-v0.1.21
📋 Review SummaryThis pull request syncs the qwen-code project with upstream gemini-cli v0.1.21. It involves a large number of file changes and incorporates significant updates from the upstream repository, including enhancements to tooling, memory management, UI/UX, and testing infrastructure. Given the scale and the nature of the sync, a thorough review focusing on correctness, security, and maintainability is essential. 🔍 General Feedback
🎯 Specific Feedback🔴 Critical(Only include this section if there are critical issues)
🟡 High(Only include this section if there are high priority issues)
🟢 Medium(Only include this section if there are medium priority issues)
🔵 Low(Only include this section if there are suggestions)
✅ Highlights(Only include this section if there are positive aspects to highlight)
|
Code Coverage Summary
CLI Package - Full Text ReportCore Package - Full Text ReportFor detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run. |
|
When can this PR merge? |
# v0.7.5 — Network Proxy, Webhooks & Community Fixes --- ## Features - **Network proxy support** — configure HTTP/HTTPS proxies with bypass rules directly from App Settings. The proxy engine routes traffic through `undici` ProxyAgent instances, respects `NO_PROXY` rules, and configures both Node and Electron browser sessions. (46049d28, 0ed01c48, 81d1b1c3, 0da3f265) - **Webhook actions for automations** — automations can now fire HTTP webhooks with configurable auth, form payloads, response capture, replay, and persistent retry with exponential backoff. (993c75ce, 588aab6c) - **Gemini 3.1 Flash Lite** — added to Google AI Studio preferred defaults. Thanks to [@naishyadav](https://github.com/naishyadav) for the suggestion in [#357](craft-ai-agents/craft-agents-oss#357). (e36e9a22) - **Dismiss working directory history items** — hover-visible X button on each recent directory entry to remove it from history. Thanks to [@jjjrmy](https://github.com/jjjrmy) ([#346](craft-ai-agents/craft-agents-oss#346)) and [@jonzhan](https://github.com/jonzhan) ([#391](craft-ai-agents/craft-agents-oss#391)) for requesting this. (3bd55d6d) ## Improvements - **History truncation** — consolidated all history field truncation to a single `HISTORY_FIELD_MAX_LENGTH` constant instead of scattered hardcoded limits (8689a1d4) - **Craft source docs** — added Collections section to guide with emphasis on the nested title + properties item format (0837afa0) ## Bug Fixes - **MiniMax CN authentication** — removed incorrect `minimax-cn → minimax` alias, added lightweight direct HTTP test for Pi providers, and stripped MiniMax-prefix for CN API compatibility. Thanks to [@Kathie-yu](https://github.com/Kathie-yu) ([#396](craft-ai-agents/craft-agents-oss#396)) and [@RimuruW](https://github.com/RimuruW) ([#386](craft-ai-agents/craft-agents-oss#386)) for reporting. Fixes [#396](craft-ai-agents/craft-agents-oss#396). (612c0e7e) - **Inline code in messages** — text between inline badges (sources, skills, files) now renders through the Markdown component, restoring inline code, bold, italic, and links. Thanks to [@linusrogge](https://github.com/linusrogge) for reporting [#378](craft-ai-agents/craft-agents-oss#378). Fixes [#378](craft-ai-agents/craft-agents-oss#378). (e7f88a38) - **Zod/JSON Schema passthrough** — default Zod object schemas to `.passthrough()` to match JSON Schema semantics where `additionalProperties` defaults to `true`. Also preserved `additionalProperties` in MCP proxy tool schema round-trip. Fixes tools with loosely-typed schemas silently losing fields. (cf4b6ac1, 42c173cf) - **Self-signed TLS certificates** — accept self-signed certificates for the configured remote server origin, fixing `ERR_CERT_AUTHORITY_INVALID` on `wss://` connections (7148ebec) - **File attachment in thin client mode** — paperclip button now uses browser-native `FileReader` API instead of server-side `fs.readFile()`, fixing silent failures when client and server filesystems differ (680cd197) - **URL linkification** — strip trailing markdown characters (`**`, etc.) from linkified URLs that were producing broken links (24385e78, 65b8f350) - **Automation action badges** — sidebar now shows correct "Prompt" / "Webhook" badges based on actual action types instead of hardcoding "Prompt" (dc422573) - **Packaged server path fallback** — added `dist/resources` fallback for builds where `extraResources` output layout differs (edc5f61f) - **`$CRAFT_EVENT_DATA` missing labels** — all automation event payloads now include the session's current `labels` array, so webhooks and scripts can access label data. Fixes [#406](craft-ai-agents/craft-agents-oss#406). (0f98f090) - **Multi-select non-adjacent sessions** — Cmd-click now always toggles selection (standard OS behavior); opening in a new panel moves to Cmd-Shift-click. Fixes [#404](craft-ai-agents/craft-agents-oss#404). (d4d7aff1) - **@ mention autocomplete with spaces** — spaces are now allowed in file mention queries (e.g. `@app availability.md`). The menu auto-closes Slack-style when a space produces no matches. Thanks to [@alexzadeh](https://github.com/alexzadeh) for reporting [#398](craft-ai-agents/craft-agents-oss#398). Fixes [#398](craft-ai-agents/craft-agents-oss#398). (1d063177) ---
Sync upstream gemini-cli v0.1.21
TLDR
This PR syncs the qwen-code project with upstream gemini-cli v0.1.21 and applies necessary patches to maintain compatibility with Qwen-specific features. The changes include
Dive Deeper
The main merge brings in significant improvements from the upstream gemini-cli project:
Testing Matrix
Waiting for further tests.
Linked issues / bugs