fix: add explicit is_background param for shell tool#445
Conversation
13964e2 to
303c561
Compare
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. |
📋 Review SummaryThis PR introduces an explicit 🔍 General Feedback
🎯 Specific Feedback🟡 High
🟢 Medium
🔵 Low
✅ Highlights
|
|
@Mingholy This is a great feature—perhaps we could submit a PR to the upstream Gemini CLI. |
| }, | ||
| }, | ||
| required: ['command'], | ||
| required: ['command', 'is_background'], |
There was a problem hiding this comment.
I wonder if we should set is_background as optional parameter, since it has default value as false.
|
@tanzhenxin Setting Based on the result above, I updated the docs to make a clear explanation and leave the discussion here. |
LGTM! |
)" This reverts commit de279b5.
)" This reverts commit de279b5.
)" This reverts commit de279b5.
)" This reverts commit de279b5.
)" This reverts commit de279b5.
* fix: add explicit background param for shell tool * fix: explicit param schema * docs(shelltool): update `is_background` description




TLDR
Experimental optimization requests for review and evaluation.
Added explicit
is_backgroundparameter to the shell tool to provide better control over background vs foreground execution of shell commands. This improvement makes it clearer when commands should run in the background (like development servers) versus foreground (like build commands), enhancing user experience and tool reliability.Dive Deeper
Added an explicit
is_backgroundboolean parameter to the shell tool for better control over command execution modes.What Changed:
is_backgroundparameter (defaults to false)[background]indicator in descriptions&syntaxWhy This Matters:
Reviewer Test Plan
Create a simple Hono HTTP server project to test the new
is_backgroundparameter:Setup Test Project:
Create Basic Files:
src/server.ts: Simple Hono servereslint.config.js: ESLint configurationtsconfig.json: TypeScript configurationpackage.json: Add dev/build scriptsTest Foreground Commands (should wait for completion):
Test Background Commands (should return immediately):
Verify Behavior:
[background]indicatorTesting Matrix
Linked issues / bugs
Fixes #346