Skip to content

Simplify scheduleDealSolve control flow - #381

Merged
tameware merged 2 commits into
dds-bridge:developfrom
tameware:address-web-comments
Sep 15, 2026
Merged

tameware merged 2 commits into
dds-bridge:developfrom
tameware:address-web-comments

Conversation

@tameware

@tameware tameware commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Drop the impossible dealSolveQueued TOCTOU dance in scheduleDealSolve; gate release and trailing restart already live in finally.
  • Unroll the two-card owner loop in parseDlmBoardPayload.

Test plan

  • node --test --test-name-pattern='rapid scheduleDealSolve|invalidateActiveDdTableRequest clears dealSolvePending|failed file import stops an in-flight solve' web/tests/dds_web_test.mjs
  • Spot-check rapid contract clicks still coalesce to one trailing leads refresh in the browser

Made with Cursor

tameware and others added 2 commits September 15, 2026 05:56
Co-authored-by: Cursor <cursoragent@cursor.com>
…ance.

Gate release and trailing restart already live in finally; single-threaded JS cannot interleave a schedule between the sync epoch check and clear.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Simplifies deal-solve scheduling and DLM payload parsing while preserving behavior.

Changes:

  • Removes redundant queue-gate TOCTOU logic.
  • Unrolls the two-card owner loop.
File summaries
File Summary
web/dds_web.js Simplifies solve scheduling and DLM payload parsing.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tameware tameware self-assigned this Sep 15, 2026
@tameware tameware added the Clean Copilot review Copilot reviewed and had neither new comments nor new suppressed comments. label Sep 15, 2026
@tameware
tameware requested a review from tzimnoch September 15, 2026 04:18
@tameware
tameware merged commit d4ddd43 into dds-bridge:develop Sep 15, 2026
12 checks passed
@tameware
tameware deleted the address-web-comments branch September 15, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Clean Copilot review Copilot reviewed and had neither new comments nor new suppressed comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants