Repository navigation
feat(claude): tier model inputs, silent config timeout #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
1c0e022
278f4f4
249610b
60b7182
76cbd7e
7475b7f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -145,9 +145,9 @@ export function createStartupClaudeMethods(options = {}) { | |
| this.maybeShowStarPrompt(); | ||
| return true; | ||
| } catch (e) { | ||
| this.initError = e && e.message === 'timeout' | ||
| ? '读取配置超时' | ||
| : '连接失败: ' + (e && e.message ? e.message : ''); | ||
| if (e && e.message !== 'timeout') { | ||
| this.initError = '连接失败: ' + (e.message || ''); | ||
| } | ||
|
Comment on lines
+148
to
+150
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Timeout errors are now silent—users will see no failure indication. When Additionally, line 402 in this.showMessage(e && e.message === 'timeout' ? '读取配置超时' : '读取配置失败', 'error');This creates an inconsistency across methods. 🔧 Proposed fix to restore timeout error visibilityOption 1: Restore distinct timeout error message (maintains previous behavior): } catch (e) {
- if (e && e.message !== 'timeout') {
+ if (e && e.message === 'timeout') {
+ this.initError = '读取配置超时';
+ } else if (e) {
this.initError = '连接失败: ' + (e.message || '');
}
return false;Option 2: Consolidate all errors under one message (if timeout distinction is unnecessary): } catch (e) {
- if (e && e.message !== 'timeout') {
+ if (e) {
this.initError = '连接失败: ' + (e.message || '');
}
return false;🤖 Prompt for AI Agents |
||
| return false; | ||
| } finally { | ||
| if (!preserveLoading) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.