Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

tui3: slash command completion inserts bare command prefix into prompt instead of navigating

已关闭 适合新手
#1,548 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go
领域
cli

调研方向

从 internal/tui3/input.go 开始,重点查看使用 Enter 选择 /task、/redo 或 /workspace 时所使用的自动补全处理器。在交互式聊天中复现面板选择,并跟踪它是插入前缀还是分派执行事件。完成标准是:这些仅用于操作或导航的命令能够立即执行或打开其视图,而不会在提示符中留下命令前缀。

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

描述

area:chat bug sev:critical
Summary

Selecting /task, /redo, or /workspace from the / command list with Enter inserts the command string with a trailing space into the text box instead of opening the view, causing typed text to become an accidental paid task brief.

Observed Behavior

Pressing / opens the palette. Scrolling to /task and hitting Enter writes /task into the active input line. Typing subsequent text and pressing Enter submits the text as a /task <brief> command, spinning up a paid background task worker.

Expected Behavior

Selecting an action-only or place-navigation command (/task, /redo, /workspace) from the palette should execute or navigate immediately rather than leaving an open command prefix in the draft prompt.

Reproduction Steps
  1. In an interactive chat, type /.
  2. Select /task from the completion list and press Enter.
  3. Observe that /task remains in the prompt.
  4. Type any message and press Enter. A paid task run starts.
Root Cause / Location

Autocomplete handler in internal/tui3/input.go treats /task as an inline prefix insertion rather than dispatching a command execution event.

—
Drafted with CodeAF · reviewed and owned by the author

主要语言
Go
星标
115
派生
14
平均合并
9 小时 37 分钟
30 天内合并 PR
755

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

Agent-Field/CodeAF 的其他 Issue

查看 Agent-Field/CodeAF 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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