Skip to content

feat: Add retry button for interpreter when request fails#713

Open
eryajf wants to merge 3 commits intoobsidianmd:mainfrom
eryajf:main
Open

feat: Add retry button for interpreter when request fails#713
eryajf wants to merge 3 commits intoobsidianmd:mainfrom
eryajf:main

Conversation

@eryajf
Copy link
Copy Markdown

@eryajf eryajf commented Mar 1, 2026

about issue #640

This PR adds a retry functionality to the interpreter feature. When an LLM request fails, users can now click the "Retry" button to attempt the request again without needing to close and reopen the extension.

Changes

  • Retry button: When interpreter request fails, the
    button now shows "Retry" instead of a disabled "Error" state
  • Timer fix: Fixed an issue where the timer would
    continue running after a failed request, causing incorrect
    time display on subsequent retries
  • Localization: Added "retry" translations for all 32
    supported languages
Google Chrome 2026-03-01 14 30 14

eryajf added 3 commits March 1, 2026 14:19
- 新增 .claude/settings.local.json 配置文件,设置权限允许执行 Bash(grep:*) 命令。

📦 build(deps): 更新依赖版本

- 更新 package-lock.json 中的版本号从 1.0.0 到 1.0.2
- 为多个依赖包添加 peer: true 属性

🌐 i18n(locales): 添加重试按钮多语言支持

- 为所有语言环境添加 "retry" 翻译,包括阿拉伯语、孟加拉语、加泰罗尼亚语等 27 种语言

🐛 fix(interpreter): 修复错误状态下的按钮行为

- 移除错误状态下的 done 和 error 类
- 将错误按钮文本改为"重试"
- 保持按钮在错误状态下可点击,允许用户重试操作

🌈 style(interpreter): 调整按钮样式

- 将按钮光标样式从 default 改为 pointer,提供更好的用户交互体验
- 将 `timerInterval` 变量移至函数作用域,避免重复声明。
- 添加计时器清理逻辑,确保在函数结束时清除定时器。
@eryajf eryajf changed the title feat: Interpreter adds retry button feat: Add retry button for interpreter when request fails Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant