feat: Add retry button for interpreter when request fails#713
Open
eryajf wants to merge 3 commits intoobsidianmd:mainfrom
Open
feat: Add retry button for interpreter when request fails#713eryajf wants to merge 3 commits intoobsidianmd:mainfrom
eryajf wants to merge 3 commits intoobsidianmd:mainfrom
Conversation
- 新增 .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` 变量移至函数作用域,避免重复声明。 - 添加计时器清理逻辑,确保在函数结束时清除定时器。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
button now shows "Retry" instead of a disabled "Error" state
continue running after a failed request, causing incorrect
time display on subsequent retries
supported languages