npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@max10240/opencode-plugin-retry

v1.0.39

Published

Interrupt the current OpenCode turn and send a configurable Continue prompt

Readme

@max10240/opencode-plugin-retry

English | 简体中文

模型卡住时,按 F5 打断当前回合并发送可配置的 Continue。

作用

按 F5,或提交 /retry (slash 形式不带参数,末尾需要空格)。不提供面板,也不注册命令面板入口。

  • 当前会话空闲:直接发送 Continue。
  • 当前会话正在运行:先打断,等待打断真正结束,再发送 Continue。
  • 打断后超过 timeoutMs(默认 1 秒)仍未结束:把 Continue 排到下一次空闲边界,并在右上角弹出警告提示, 不会丢弃消息。
  • 不会打开任何面板。

阻塞判断只看当前会话的执行状态(running / idle)。主回合已经 idle、但后台 shell 或 subagent 还在跑时, 不算阻塞。

配置

这是 TUI 插件,配置写在 cli.json。

独立使用:

{
  "$schema": "https://opencode.ai/v2/cli.json",
  "plugins": [
    {
      "package": "@max10240/opencode-plugin-retry",
      "options": {
        "keybind": "f5",
        "continueText": "Continue"
      }
    }
  ]
}

通过 Unicorn 使用:

{
  "$schema": "https://opencode.ai/v2/cli.json",
  "plugins": [
    {
      "package": "@max10240/opencode-plugin-unicorn",
      "options": {
        "features": { "retry": true },
        "retry": {
          "keybind": "f5",
          "continueText": "Continue"
        }
      }
    }
  ]
}

| 参数 | 默认值 | 说明 | | --- | --- | --- | | keybind | f5 | Retry 快捷键;设为 false 后只保留 /retry | | continueText | Continue | 空闲或打断完成后发送的消息 | | timeoutMs | 1000 | 等待旧回合结束的时间;超过后改为排队发送 Continue |

Unicorn 中用 features.retry: false 可完全关闭该插件。

为什么用 F5

Windows 的标准刷新键是 F5(资源管理器、浏览器都是)。F4 是地址栏,Alt+F4 是关闭窗口。 OpenCode TUI 默认没有使用 F5。

快捷键只在普通会话视图生效,不会在权限确认、问题选择等 modal 对话框里触发。macOS 笔记本如果功能键需要 Fn,使用 Fn+F5,或把 keybind 改成其他组合。

行为细节

  • 先调用 session.interrupt,再用 experimental.session.wait 等待旧回合真正结束;及时结束时 Continue 以 steer 方式进入新回合。
  • interrupt 返回 interrupted: false 时会再次检查会话:真正 idle 才直接发送;如果旧回合仍在停止,则等待清理完成后再发送。
  • 等待超过 timeoutMs 时不再报错,而是把 Continue 排到下一次空闲边界,避免送进正在停止的旧回合;不会清空 已有排队消息。
  • Retry 流程进行中时,重复按键会被忽略。
  • 不覆盖输入框里的草稿。
  • 不清空已有队列。
  • 打断失败、等待失败、发送或排队失败、session 消失等错误都会在右上角提示;等待超时本身不再算失败,而是改为排队发送。
  • 功能关闭或配置无效时,不注册快捷键和 slash Command。