openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

CPU pegging on Mac/Linux and setup loop prevents chat access

Open Al629176 opened this issue 4 months ago • 1 comments

Summary

After initial installation and completing the setup wizard, users are continuously forced through the setup process again, preventing access to the chat functionality.

Problem

On macOS and Linux, after completing the initial setup wizard, the app fails to persist the completion state. On subsequent launches, the setup wizard reappears and completing it again does not break the loop — users are permanently blocked from reaching the chat interface.

Steps to reproduce

  1. Install the application on macOS or Linux.
  2. Launch the application and complete the initial setup wizard.
  3. Expect to be taken to the main chat interface.
  4. Instead, the setup wizard reappears, and completing it again does not break the loop.

Affected areas: Setup/Onboarding module, Application startup flow, Configuration persistence layer

Solution

Investigate the setup completion logic to determine why it fails to persist state. Review the flow that checks for an existing valid configuration and triggers the setup wizard. Ensure that once setup is successfully completed, a persistent flag or configuration file is written and verified on subsequent launches to skip the setup. Consider edge cases like permissions issues on config file write or asynchronous state saving that may not complete before re-check.

Acceptance criteria

  • [ ] After completing setup successfully, the user is taken directly to the chat interface on subsequent launches without re-entering the setup wizard.
  • [ ] The setup flag or configuration is correctly persisted across application restarts.
  • [ ] The chat feature is fully accessible after a single successful setup completion.

Related

None found by similarity search.

Al629176 avatar Aug 04 '26 06:08 Al629176

Closing as fixed — both reported symptoms are resolved.

CPU pegging / harness-init loop: PR #5276 (merged 2026-07-31) bounded the harness_init_status poll loop that previously retried unconditionally every 2 s on method_not_found. The fix added MAX_TRANSIENT_FAILURES=5 with exponential backoff (HarnessInitOverlay.tsx:14-48).

Setup loop / completion state not persisting: set_onboarding_completed now atomically persists via config.save() with a temp-file rename. OnboardingLayout.tsx:60-64 throws on failure rather than silently navigating. DefaultRedirect.tsx:31-39 guards the post-login race. No code path in the current main can produce a persistent loop.

Both fixes landed before this issue was filed on 2026-08-04.

YellowSnnowmann avatar Sep 04 '26 07:09 YellowSnnowmann