Skip to content

fix(x): root and reply on separate tabs with stable Brave lock - #82

Merged
Interchouette merged 1 commit into
Interchouette-ITC:devfrom
Interchouette:fix/x-ship-tabs-brave-lock
Sep 1, 2026
Merged

fix(x): root and reply on separate tabs with stable Brave lock#82
Interchouette merged 1 commit into
Interchouette-ITC:devfrom
Interchouette:fix/x-ship-tabs-brave-lock

Conversation

@Interchouette

Copy link
Copy Markdown
Member

Summary

  • Post overflow tweets on two CDP tabs in one Brave session: root compose on tab 1, reply on tab 2, tabs closed before shell cleanup.
  • Fix brave.lock race: stale cleanup checks flock before unlink; acquire uses flock on a stable lock file (300s wait).
  • CDP launch scans for a free port when the preferred port is taken (launch only, not a ship retry).

Test plan

  • make lint
  • make test (incl. scripts/x-ship-resolve.test.mjs)
  • Manual /retry_bat TWEET-20260901-000100 shipped root+reply to X

Made with Cursor

One CDP session posts root on tab 1 and overflow reply on tab 2, then
closes tabs before shell cleanup. Flock-based brave.lock no longer unlinks
while another ship holds the lock; CDP port bind retries on launch only.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Interchouette
Interchouette merged commit e77cb5a into Interchouette-ITC:dev Sep 1, 2026
1 check passed
@Interchouette
Interchouette deleted the fix/x-ship-tabs-brave-lock branch September 1, 2026 14:15
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