Skip to content

Fix idle account recovery and add default prompt toggle#3096

Open
xiaodream551-a11y wants to merge 3 commits into
lbjlaq:mainfrom
xiaodream551-a11y:fix/3082-945-health-system-prompt
Open

Fix idle account recovery and add default prompt toggle#3096
xiaodream551-a11y wants to merge 3 commits into
lbjlaq:mainfrom
xiaodream551-a11y:fix/3082-945-health-system-prompt

Conversation

@xiaodream551-a11y

Copy link
Copy Markdown

Summary

  • add a Global System Prompt option to disable the built-in Antigravity identity prompt while keeping custom global prompts available
  • apply the default prompt toggle across Claude, OpenAI, and Gemini-native request mappers
  • reset account health/rate-limit state using account_id on successful requests and reload the account cache once before returning stale "All accounts failed or unhealthy" errors

Fixes #3082
Fixes #945

Tests

  • cargo test --manifest-path src-tauri/Cargo.toml -p antigravity_tools test_default_system_prompt_can_be_disabled -- --test-threads=1 --nocapture
  • cargo test --manifest-path src-tauri/Cargo.toml -p antigravity_tools test_mark_account_success_accepts_email -- --nocapture
  • cargo test --manifest-path src-tauri/Cargo.toml -p antigravity_tools test_stale_token_pool_errors_trigger_reload -- --nocapture
  • npm run build

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.

新版本idle一段时间以后会报 All accounts failed or unhealthy. Feature Request: 提供禁用默认 System Prompt 的选项

1 participant