Expose the agent's permission/plan mode as a control in the prompt box

未关闭
#256 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript
领域
frontend

调研方向

Start by reading src/components/PromptInput.tsx and trace how it sends prompts and interacts with the agent's PTY. The issue is done when the prompt box exposes and cycles the current mode, and a prompt can be sent using the selected mode; verify the control and sending behavior in the app.

由索引模型根据 Issue 内容生成。

描述

Environment: Parallel Code 1.12.0 (deb), Linux, Claude Code agent. Code references verified against main @ d000fff65.

Problem

Claude Code has a permission-mode cycle (default → auto-accept edits → plan mode, normally cycled with Shift+Tab). Right now the only way to change it is to click into the agent's terminal pane and press Shift+Tab there.

Request

Add a mode control to PromptInput (src/components/PromptInput.tsx), next to the send button:

  • Shows the agent's current mode.
  • Click (or a keybinding while the prompt box is focused) cycles it — implemented by sending the agent's mode-cycle key to the PTY, so no agent-side integration is needed.
  • Ideally the sent prompt uses whatever mode is selected at send time, so I can pick "plan" and send in one gesture.
主要语言
TypeScript
星标
1k
派生
144
平均合并
4 天 19 小时
30 天内合并 PR
28

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

johannesjo/parallel-code 的其他 Issue

查看 johannesjo/parallel-code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。