New task from selected terminal text

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

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
67/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
react, typescript

调研方向

Start in TerminalSelectionMenu.tsx and trace how “Ask another agent…” opens its dialog, then find the New Task dialog and how it receives its prompt and project. Add “New task from selection…” with the selected text and current task’s project prefilled while leaving the task running. Done when the dialog opens with both defaults and the prompt remains editable.

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

描述

What are you trying to do?

While reading an agent's output in a task's terminal, I often spot something that deserves its own task: a follow-up the agent mentions, a bug it noticed on the way, a refactoring it suggests but should not do in this task. Today I select the text, copy it, open a new task and paste it in. Right-clicking the selection only offers Copy, Ask another agent… and Second opinion…, and none of them starts a new task.

What would help?

A New task from selection… entry in the terminal selection menu (TerminalSelectionMenu.tsx), next to Ask another agent…. It would open the New Task dialog with:

  • the selected text pre-filled as the prompt, so I can edit it before starting,
  • the current task's project selected by default.

The current task keeps running untouched, the same way Ask another agent… leaves it alone.

What do you do today instead?

Copy, open the New Task dialog, paste.

Contributing
  • I'd like to work on this myself.

I'm willing to open a PR for this. Happy to adjust the approach first if you'd rather see it somewhere else (another label, the same entry in the diff viewer, or a keyboard shortcut).


Drafted with Claude Code (Opus 5.5).

主要语言
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 摘要。