Skip to content

Don't swallow Tetrate errors #6998

Merged
katzdave merged 3 commits intomainfrom
dkatz/tetrate-error
Feb 6, 2026
Merged

Don't swallow Tetrate errors #6998
katzdave merged 3 commits intomainfrom
dkatz/tetrate-error

Conversation

@katzdave
Copy link
Collaborator

@katzdave katzdave commented Feb 5, 2026

#6993

I don't have a key but I'm at least able to get a specific error about my key being invalid.

Copilot AI review requested due to automatic review settings February 5, 2026 20:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves error handling in the Tetrate provider by propagating API errors instead of silently falling back to manual model entry. When the Tetrate API returns authentication or configuration errors (like invalid API key or account balance issues), users now receive clear error messages with actionable guidance.

Changes:

  • Changed fetch_supported_models to return errors instead of Ok(None) when API calls fail
  • Added helpful error messages directing users to check their API key and account at the Tetrate documentation URL

Comment on lines 257 to 260
return Err(ProviderError::ExecutionError(format!(
"Failed to fetch models from Tetrate API: {}",
e
)));
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first error path (network/request failures) should also include the TETRATE_DOC_URL to help users verify their configuration, similar to the second error path. Both errors could indicate authentication or configuration issues that users need to resolve.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

@DOsinga DOsinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what copilot says sounds sensible and @michaelneale might be able to test, but yeah!

@katzdave katzdave added this pull request to the merge queue Feb 6, 2026
Merged via the queue into main with commit 6fb7630 Feb 6, 2026
22 of 23 checks passed
@katzdave katzdave deleted the dkatz/tetrate-error branch February 6, 2026 04:48
katzdave added a commit that referenced this pull request Feb 6, 2026
katzdave added a commit that referenced this pull request Feb 6, 2026
…webtoken-10.3.0

* origin/main: (54 commits)
  Switch tetrate tool filtering back to supports_computer_use (#7024)
  feat(ui): add inline rename for chat sessions in sidebar (#6995)
  fix: handle toolnames without underscores (#7015)
  feat(claude-code): use stream-json protocol for persistent sessions (#7029)
  test(providers): add model listing to live provider suite (#7038)
  Agent added too much (#7036)
  fix(deps): bump tree-sitter to 0.26 and set sqlx default-features=false to fix RUSTSEC advisories (#7031)
  feat: add image support and improve error resilience for Codex (#7033)
  fix(providers): Azure OpenAI model listing 404 during configure (#7034)
  fix(deps): bump bat to 0.26.1 to resolve RUSTSEC-2026-0008 (#7021)
  Don't swallow Tetrate errors  (#6998)
  docs: remove hardcoded_stuff links (#7016)
  fix(ui): keep Hub chat input from overlapping SessionInsights on paste (#6719)
  Clean up css (#6944)
  docs: aws bedrock bearer token auth (#6990)
  docs: extended custom provider headers support (#7012)
  feat(cli): add type-to-search filtering to select/multiselect dialogs (#6862)
  feat(ci): add cargo-audit workflow for scanning rust vulnerabilities (#6351)
  feat: add User-Agent header to MCP HTTP requests (#6988)
  chore(deps-dev): bump webpack from 5.102.1 to 5.105.0 in /ui/desktop (#6996)
  ...

# Conflicts:
#	Cargo.lock
zanesq added a commit that referenced this pull request Feb 6, 2026
* origin/main:
  Remove build-dependencies section from Cargo.toml (#6946)
  add /rp-why skill blog post (#6997)
  fix: fix snake_case function names in code_execution instructions (#7035)
  Document max_turns settings for recipes and subagents (#7044)
  feat: update Groq declarative data with Preview Models (#7023)
  fix(codex): propagate extended PATH to codex subprocess (#6874)
  Switch tetrate tool filtering back to supports_computer_use (#7024)
  feat(ui): add inline rename for chat sessions in sidebar (#6995)
  fix: handle toolnames without underscores (#7015)
  feat(claude-code): use stream-json protocol for persistent sessions (#7029)
  test(providers): add model listing to live provider suite (#7038)
  Agent added too much (#7036)
  fix(deps): bump tree-sitter to 0.26 and set sqlx default-features=false to fix RUSTSEC advisories (#7031)
  feat: add image support and improve error resilience for Codex (#7033)
  fix(providers): Azure OpenAI model listing 404 during configure (#7034)
  fix(deps): bump bat to 0.26.1 to resolve RUSTSEC-2026-0008 (#7021)
  Don't swallow Tetrate errors  (#6998)
  docs: remove hardcoded_stuff links (#7016)

# Conflicts:
#	ui/desktop/src/components/GooseSidebar/AppSidebar.tsx
kuccello pushed a commit to kuccello/goose that referenced this pull request Feb 7, 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.

3 participants