Skip to content

fix: 互斥不禁止选择,解析所有 sync 函数到具体值 - #111

Merged
Pigbibi merged 1 commit into
mainfrom
fix/resolve-all-sync-to-concrete
Jun 29, 2026
Merged

fix: 互斥不禁止选择,解析所有 sync 函数到具体值#111
Pigbibi merged 1 commit into
mainfrom
fix/resolve-all-sync-to-concrete

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

改动

1. 互斥逻辑不再禁止用户选择

之前当预留现金覆盖活跃时,"允许融资: 是"选项被 disabled 无法点击;反之亦然。现在移除所有禁用,用户可自由选择任意选项,reconcileExecutionCashPolicy 在选中时自动清除冲突项。

2. 所有 sync 函数解析为具体值

不再默认显示"沿用当前配置",而是读取平台实际值后直接显示具体状态:

函数 之前 之后
syncRuntimeTargetForAccount 始终 "current" 解析为 enabled/disabled
syncIncomeLayerForAccount 始终 "current" 解析为 enabled/disabled
syncOptionOverlayForAccount 回退 "current" 解析为 enabled/disabled

3. 测试

104 个单元测试全部通过,覆盖新增的 Runtime Target、Income Layer、Option Overlay 解析和互斥 UI 回归。

🤖 Generated with Claude Code

- 移除 margin/reserve 相互禁用下拉框选项的行为,改为选择时自动清除冲突项
- syncRuntimeTargetForAccount: 解析为 enabled/disabled
- syncIncomeLayerForAccount: 解析为 enabled/disabled
- syncOptionOverlayForAccount: 解析为 enabled/disabled
- 更新测试: 104 个用例

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🤖 Codex PR Review

⚠️ Review skipped: The Codex review could not be completed.

No Codex service URL or API key configured. Set CODEX_AUDIT_SERVICE_URL, ANTHROPIC_API_KEY, or OPENAI_API_KEY.

Please ensure a human reviewer checks this PR before merging.

@Pigbibi
Pigbibi merged commit 8547ba5 into main Jun 29, 2026
2 of 4 checks passed
@Pigbibi
Pigbibi deleted the fix/resolve-all-sync-to-concrete branch June 29, 2026 14:51
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