Skip to content

fix DeepSeek provider routing and refresh desktop docs#24

Merged
simonguo merged 1 commit into
mainfrom
agent/fix-deepseek-provider-routing
Jul 24, 2026
Merged

fix DeepSeek provider routing and refresh desktop docs#24
simonguo merged 1 commit into
mainfrom
agent/fix-deepseek-provider-routing

Conversation

@simonguo

Copy link
Copy Markdown
Owner

Summary

Validation

  • Python tests and Ruff checks pass
  • Frontend lint, typecheck, tests, and build pass
  • Rust fmt, clippy, and tests pass
  • Documentation and changelog are updated where needed
  • No credentials, reports, databases, generated sidecars, or unlicensed assets are included
  • Commits include Signed-off-by for the DCO

Security and data impact

Screenshots

Copilot AI review requested due to automatic review settings July 24, 2026 05:35

Copilot AI left a comment

Copy link
Copy Markdown

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 LLM provider routing (notably DeepSeek) across the desktop runner and runtime config logging, and refreshes desktop-facing documentation/UI messaging to better reflect when settings changes take effect.

Changes:

  • Fix desktop (Tauri) environment variable injection to isolate credentials to the selected LLM provider and avoid leaking/cross-wiring API keys.
  • Add runtime logging of the effective LLM configuration with safe endpoint redaction, plus tests covering DeepSeek payload overrides and URL sanitization.
  • Normalize settings before persistence/execution and improve “settings saved” notices for running vs queued tasks; refresh README desktop screenshot.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_desktop_runner_config.py Adds regression tests for DeepSeek payload routing and endpoint redaction helpers.
src-tauri/src/main.rs Adjusts desktop child-process env handling to isolate provider credentials; adds supporting tests.
README.md Adds a desktop workspace screenshot section for updated docs.
frontend/src/lib/i18n.ts Introduces new localized “settings saved” notices for running/queued tasks.
frontend/src/features/settings/lib/normalize-settings.ts Adds a helper to canonicalize provider routing fields prior to saving/executing.
frontend/src/features/settings/lib/normalize-settings.test.ts Adds unit coverage for settings normalization behavior.
frontend/src/components/task-center/context.tsx Applies normalization on save and sets contextual “settings saved” notices based on queue state.
frontend/server/run_analysis.py Ensures payload provider override is applied correctly and emits a sanitized runtime LLM config message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +13
export function normalizeSettingsForSave(settings: GlobalSettings): GlobalSettings {
return {
...settings,
llmProvider: settings.llmProvider.trim().toLowerCase(),
backendUrl: settings.backendUrl.trim(),
quickThinkLlm: settings.quickThinkLlm.trim(),
deepThinkLlm: settings.deepThinkLlm.trim(),
apiKey: settings.apiKey.trim(),
alphaVantageApiKey: settings.alphaVantageApiKey.trim(),
};
}
Comment thread src-tauri/src/main.rs
Comment on lines +1255 to +1259
fn remove(&mut self, name: &str) {
if !self.removed_vars.iter().any(|item| item == name) {
self.removed_vars.push(name.to_string());
}
}
Signed-off-by: simonguo <simonguo.2009@gmail.com>
@simonguo
simonguo force-pushed the agent/fix-deepseek-provider-routing branch from 4c33916 to 12a968f Compare July 24, 2026 05:54
@simonguo
simonguo merged commit 74fc530 into main Jul 24, 2026
13 checks passed
@simonguo
simonguo deleted the agent/fix-deepseek-provider-routing branch July 24, 2026 05:59
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.

2 participants