Skip to content

Fix first-run startup hanging before account verification completes - #562

Closed
limex wants to merge 2 commits into
dimdenGD:mainfrom
limex:fix/first-run-startup
Closed

limex wants to merge 2 commits into
dimdenGD:mainfrom
limex:fix/first-run-startup

Conversation

@limex

@limex limex commented Oct 11, 2026

Copy link
Copy Markdown

The auto-updater is preserved. src/injection.js is unchanged from upstream; all existing remote asset updates remain enabled.

On a fresh installation, TweetDeck can request its initial state before account verification completes. Building default settings then accesses verifiedUser.id_str before it exists, leaving the loading spinner visible.

This change:

  • Waits for account verification before creating default settings, with a 20-second timeout that completes the request with an error.
  • Initializes empty feed and column data to avoid persisting invalid values.

Validation: Three regression tests cover delayed verification, existing settings, and timeout handling. Chrome browser testing of the patched adapter with empty test settings and a four-second verification delay confirmed that tweets load, the spinner disappears, and Search opens. A 25-second verification delay produced a visible initialization error. Normal mode was separately verified to load the remote adapter.

Run the regression tests with node --test tests/startup.test.cjs. Until the fix is merged upstream, browser testing of the bundled adapter requires OTDalwaysUseLocalFiles because normal mode downloads the upstream adapter.

@limex limex closed this Oct 12, 2026
yukari-557fd8 added a commit to yukari-557fd8/OldTweetDeck that referenced this pull request Oct 15, 2026
…ount verification

Pulls in dimdenGD#562 by limex (closed unmerged upstream).
On a fresh install TweetDeck requested its initial state before
verify_credentials completed, so default settings were built from an
undefined verifiedUser and the loading spinner never resolved. The
blackbird/all handler now waits (max 20s) for verification and fails
the request with a 503 instead of hanging. The auto-updater is untouched.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
yukari-557fd8 added a commit to yukari-557fd8/OldTweetDeck that referenced this pull request Oct 16, 2026
Phase 1 (timeline fetching) landed in 92f0be5, so mark it complete and
list it among the fork's fixes; the real-device check is still open.

Add a Phase 2 for notifications and Mentions from looking into dimdenGD#507 and
dimdenGD#549: cursor-top polls may not return unread notifications (and 92f0be5
now gives Teams accounts their own cursor-top too), since polls overwrite
the bottom cursor, a request that errors or never completes leaves the
column on "Loading...", and one notification without an author empties
its whole page. The later phases move down by one.

dimdenGD#515 only affects Patreon-linked users, whose fix is a closed script
loaded from oldtd.org, so file it as upstream-dependent.

Also correct dimdenGD#562 (limex's PR, closed unmerged upstream, merged here),
refresh the src/interception.js line numbers to 92f0be5, align the
Phase 1 test notes with the tests that were added, and note that dimdenGD#469
is closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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