Skip to content

Setup: GitHub changes on Projects and in Quick setup read in the other without a reload (0.3.11) - #22

Merged
Darkhorse7stars merged 1 commit into
mainfrom
fix/github-changed-heard
Oct 31, 2026
Merged

Darkhorse7stars merged 1 commit into
mainfrom
fix/github-changed-heard

Conversation

@Darkhorse7stars

Copy link
Copy Markdown
Member

Problem

On hanzo.ai, Quick setup (this package's Setup) and the Projects banner (@hanzo/build) only agree after a reload:

  • Connect GitHub on Projects → GitHub returns and Projects completes the grant, but Setup had already read and keeps saying "Connect GitHub".
  • Disconnect in Setup → the Projects banner keeps saying "GitHub connected as @…".

Change

A GitHub change is said on the window as hanzo:github (GITHUB_CHANGED), the same name @hanzo/build's Projects and Settings now say and hear (hanzoai/build#6):

  • Setup hears it and reads what is connected again.
  • Setup says it after its Disconnect and after its GitHub connect popup answers (it reads again by hearing its own word).
  • LLM.md notes the event.

Version 0.3.11.

Tests

Setup.test.tsx now runs in happy-dom, so two new tests can mount Setup and run its effects:

  • a hanzo:github event makes Setup read /v1/connection again;
  • Setup's Disconnect (ask, then confirm) posts /v1/provider/github/user/disconnect and says hanzo:github, and Setup reads again.

The existing static-markup tests are unchanged.

…etup's reads there (0.3.11)

Setup read GitHub on mount, on focus and after its own act, so a connect
finished on Projects (after Setup had read) left it saying "Connect GitHub", and
its own Disconnect left Projects saying "connected".

A GitHub change is said on the window as `hanzo:github` (GITHUB_CHANGED), the
name @hanzo/build's Projects and Settings say and hear. Setup says it after its
Disconnect and its GitHub popup, and reads again on hearing it.
@Darkhorse7stars
Darkhorse7stars merged commit 8ce9715 into main Oct 31, 2026
5 of 6 checks passed
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