Skip to content

Fix debugger streaming worker - #1185

Merged
carkod merged 7 commits into
masterfrom
dark-knight-lifecycle
Oct 26, 2026
Merged

carkod merged 7 commits into
masterfrom
dark-knight-lifecycle

Conversation

@carkod

@carkod carkod commented Oct 24, 2026

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T22:23:43.010031Z c193afa Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@carkod
carkod force-pushed the dark-knight-lifecycle branch from e7c450c to c193afa Compare October 26, 2026 22:20
@carkod

carkod commented Oct 26, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@carkod
carkod force-pushed the dark-knight-lifecycle branch from c193afa to 42c8247 Compare October 26, 2026 22:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c193afab86

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread streaming/lifecycle.py Outdated
Comment on lines +857 to +859
Status.completed,
}:
return self.execution.active_bot

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reconcile pending sizing orders before returning completed bots

When a native protective order fills while a position increase is still pending, FuturesPosition.record_protective_fill() can mark the bot completed while deal.position_size_order remains set. This new early return bypasses the completed-bot branch in Lifecycle.exit(), which calls close_all() to cancel that increase and flatten any residual exposure. The outstanding order can therefore reopen an unprotected position after the bot has been retired. Preserve that cleanup before returning completed bots; the existing test_native_trailing_fill_cancels_a_pending_increase_before_retiring_bot tests exit() directly and does not cover this new process_tick() bypass.

Useful? React with 👍 / 👎.

@carkod
carkod merged commit cccbc52 into master Oct 26, 2026
14 checks passed
@carkod
carkod deleted the dark-knight-lifecycle branch October 26, 2026 22:37
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