bug(ai): “自动执行只读命令”识别不准确,且缺少允许所有工具自动确认的选项

Open
#1,738 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
dart, flutter
Domain
security, tooling

Research direction

Start by tracing the AI settings entry points for permissions and tools, especially “automatically execute read-only commands” and “use without asking.” Compare their current behavior with the two reported cases: common read-only commands still prompt, and there is no option to allow all tools. Done means the behavior matches an agreed scope for both cases, with tests covering the permission decisions.

Written by the indexing model from the issue text.

Description

bug enhancement feature
描述 Bug

在开启 AI 辅助功能后,工具调用的权限确认机制存在以下两个影响使用体验的问题:

  1. 缺少全局/完整的工具自动确认功能:在 AI -> 工具 -> 无需询问即可使用 中,无法允许所有工具(或服务器执行命令等核心工具)免确认自动执行,导致每次 AI 连续调用工具时都需要人工逐个点击同意,操作非常繁琐。
  2. “自动执行只读命令”识别不准确:在 AI -> 权限 中已经开启了“自动执行只读命令”,但在实际对话中,许多明显属于只读/查看性质的命令依然未被识别为只读,仍然会频繁拦截并要求手动确认。
复现步骤
  1. 进入 设置 -> AI,开启“自动执行只读命令”。
  2. 进入 设置 -> AI -> 工具,开启各项内置工具,查看底部的“无需询问即可使用”选项。
  3. 在对话中让 AI 执行服务器排查或信息读取任务。
期望结果
  1. 提供“允许所有工具自动执行(无需询问)”的开关,或在“无需询问即可使用”中支持勾选全部工具。
  2. 优化只读命令的判断逻辑,常见的读取、查询类命令无需每次手动点击确认。
实际结果

每次调用工具及执行部分只读命令时,仍需人工逐个点击确认。

截图
Image Image
设备
  • 系统:Android 15
  • 版本:1.0.1787
更多信息

无

Dominant language
Dart
Stars
8.9k
Forks
573
Avg merge
2h 11m
Merged PRs (30d)
134

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lollipopkit/flutter_server_box

All issues in lollipopkit/flutter_server_box

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.