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

[FEATURE]: Make Revert the default action in the Message Actions dialog

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
75/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
cli

调研方向

从 issue 指定为菜单位置的 packages/tui/src/routes/session/dialog-message.tsx 开始,检查 Message Actions 条目的排序和选择方式。issue 提到有一个本地 TUI fixture 测试会点击转录记录的一行;找到该测试或添加它,并确认顺序为 Revert、Jump to、Copy、Fork,且默认选中 Revert。

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

描述

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

Clicking an earlier user message in the V2 TUI opens Message Actions with Jump to, Revert, Copy, Fork, and Jump to is highlighted by default.

When I click an old message, I almost always want to revert to it. The message is already on screen, so Jump to usually does nothing visible. Today that means an extra keypress every time.

Proposal: put Revert first, so it is the default selection, and move Jump to to second. Revert is already non-destructive at this point: it only stages a revert, which can be cleared.

The change is a two-entry reorder in packages/tui/src/routes/session/dialog-message.tsx. I have it working locally on v2.0.31, with a TUI fixture test that clicks a transcript row and asserts the order Revert → Jump to → Copy → Fork. I'm happy to open a PR if maintainers agree with the default, or to make it configurable if you prefer that.

主要语言
TypeScript
星标
221k
派生
29.6k
平均合并
4 小时 53 分钟
30 天内合并 PR
506

环境准备

从这里开始

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

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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