Skip to content

fix(app): harden self-hosted web startup and session path handling#21845

Open
Leuconoe wants to merge 4 commits intoanomalyco:devfrom
Leuconoe:fix/self-hosted-web-startup
Open

fix(app): harden self-hosted web startup and session path handling#21845
Leuconoe wants to merge 4 commits intoanomalyco:devfrom
Leuconoe:fix/self-hosted-web-startup

Conversation

@Leuconoe
Copy link
Copy Markdown

@Leuconoe Leuconoe commented Apr 10, 2026

Issue for this PR

Closes #21849

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This fixes two self-hosted web regressions in the app package.

  • It guards missing directory and diff.file values so the workspace/session UI does not crash while normalizing paths.
  • It makes the web app prefer the current local self-hosted server instead of a stale saved server URL when booting in the browser.
  • It also fixes the custom-elements.d.ts reference files so the repo typecheck hook passes again.

How did you verify your code works?

  • Built the Windows binary from source and ran the self-hosted server locally.
  • Verified with node + playwright that http://127.0.0.1:4099/ reaches READY=complete and renders the home page.
  • Verified /project and /session load again from the existing main database.
  • Verified packages/desktop-electron and packages/enterprise typecheck after the declaration reference fix.

Screenshots / recordings

No recording attached.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

trkim and others added 3 commits April 10, 2026 17:22
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@Leuconoe Leuconoe requested a review from adamdotdevin as a code owner April 10, 2026 08:28
@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@Leuconoe
Copy link
Copy Markdown
Author

all green~!

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.

Self-hosted web can hang on startup and crash on missing session path data

1 participant