mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
Replace the two adjacent account-level controls (3-state injection bridge + 2-state explicit tool policy) in EditAccountModal with a single four-state selector: follow channel / force inject / no injection / block all. The four states map onto the existing extra keys (codex_image_generation_bridge, codex_image_generation_explicit_tool_policy) with no backend change; strip already disables the bridge upstream, so the effective decision space is exactly these four states. - load: strip takes precedence and reads as "block all"; legacy bridge_enabled key still recognized and cleaned up on save - save: block writes policy=strip and drops the bridge override; inherit clears both keys - semantic accent colors per state (sky/emerald/amber/rose) with dark mode support; state badge follows the same palette - replace account-scope i18n keys in zh/en (channel-scope keys untouched) - rewrite specs to cover all four states (25/25 passing)