Skip to content

feat: 新增 AUTH_RECOVERY 控制认证失效后的续签材料读取 - #3

Closed
luvs01 wants to merge 1 commit into
mainfrom
auth-recovery-opt-out
Closed

luvs01 wants to merge 1 commit into
mainfrom
auth-recovery-opt-out

Conversation

@luvs01

@luvs01 luvs01 commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Upstream handoff

This fork PR is superseded by Mag1cFall/AIStudio2API #182. Both PRs point to the same head 260a729f1a38ba9c06f5d0149fcc5f85dba7e08a; all 13 changed-file blob SHAs match. Further review and maintenance continue in Mag1cFall#182 on the retained auth-recovery-opt-out branch.

The exact-head fork Checks 43918228322 and upstream Checks 43919097305 both passed. The two inline findings in this fork PR are resolved. Closing this duplicate does not claim upstream approval or merge; the upstream maintainer's use-case question remains open.


改动 / Changes

  • 新增 AUTH_RECOVERY(默认 true)控制认证失效后的账户恢复。设为 false 时,失效账户进入需要人工重新登录的状态。
  • 管理页面根据已保存与运行中的配置显示服务重启提示;保存其他设置时保留文件或环境变量中的取值。
  • DBSC 会话的主动刷新与人工登录、导入按原有规则执行,中英文配置文档同步说明。
  • Add AUTH_RECOVERY (default true) for recovery after an authentication failure. With false, affected accounts require manual sign-in. A saved value that differs from the running service triggers the restart-required indicator. Unrelated settings saves preserve the configured value. Proactive DBSC refresh and manual sign-in/import follow their existing lifecycle.

验证 / Verification

  • Exact head 0b76f78ee957a1b4c8879391fdced6dc2e59d440: Checks 43845839102 passed frontend build, typecheck/lint/format, Linux/Windows vet, and go test ./cmd/... ./internal/.... This includes recovery enabled/disabled behavior, both restart-required directions, server-only DTO serialization, and configuration preservation.
  • Local configuration tests: 10 passed; go vet ./internal/config, formatting, and git diff --check passed.
  • Windows, Linux amd64/arm64, and Linux desktop builds passed at the earlier 201b9af in run 43841235507. That run concluded with failure because the macOS job could not acquire a hosted runner and was cancelled before execution. Full platform builds for the new head remain unverified.

Devin Review

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

devin-ai-integration[bot]

This comment was marked as resolved.

@luvs01
luvs01 force-pushed the auth-recovery-opt-out branch from 201b9af to 0b76f78 Compare November 16, 2026 10:06
@luvs01
luvs01 force-pushed the auth-recovery-opt-out branch from 0b76f78 to 260a729 Compare November 16, 2026 17:25
@luvs01 luvs01 closed this Nov 17, 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.

1 participant