Skip to content

fix(orderbook): recover continuous close reduce-only conflicts - #281

Merged
jackhai9 merged 1 commit into
mainfrom
codex/close-recovery
Sep 6, 2026
Merged

jackhai9 merged 1 commit into
mainfrom
codex/close-recovery

Conversation

@jackhai9

@jackhai9 jackhai9 commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Continuous close previously stopped on a second reduce-only rejection even when fills had changed the position. Version 2.7.202 recovers confirmed 90802022 responses by rechecking the same-side position, capping rebuilt plans by both API position and current DOM closeable quantity, and ending normally when flat. An unchanged position permits one scoped Basic-order replacement; another rejection without real position reduction stops with its original reason. Once this recovery starts, unrelated capacity recovery and uncertain action results cannot trigger further cancellations or submissions.

Validation: full unit/DOM suite passed on the release branch; build, syntax, metadata, and diff checks passed. Three generated-script Playwright scenarios passed for repeated rejections with partial submissions, flat detection while the native button is disabled, and a later capacity rejection without batch cancellation. Independent read-only review passed after its findings were fixed. Live Tampermonkey sync and loaded-source verification follow merge; no financial actions are part of validation.

@jackhai9
jackhai9 merged commit 4aeecf9 into main Sep 6, 2026
1 check passed
@jackhai9
jackhai9 deleted the codex/close-recovery branch September 6, 2026 05:44
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