Skip to content

fix(app): splash time-out with a Reload button, and no requests for an empty directory (Refs #1534) - #2205

Merged
bc037 merged 1 commit into
mainfrom
fix/1534-splash-fallback
Dec 3, 2026
Merged

bc037 merged 1 commit into
mainfrom
fix/1534-splash-fallback

Conversation

@bc037

@bc037 bc037 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Related Issue

Refs #1534 (the /api/reference 500 itself does not reproduce on the current engine, so this PR does not close the issue)

Description

Two client-side gaps from #1534. Both are independent of the 500.

1. Splash time-out (extension/src/chat_panel.ts). The adopt() overlay faded only when app-ready arrived. If the chat app stalled, the user saw "Getting Amico ready…" forever. After 30 s without app-ready the overlay now shows "Amico is taking longer than expected to start." and a Reload button. Reload reloads the iframe, resets the text and arms the time-out again. A late app-ready still fades the splash and hides the message.

2. Directory guard (overlay/.../global-sync/child-store.ts). child("") and peek("") logged "No directory provided" and carried on. They turned the instance queries on and asked the server for directory=/. An empty directory now gets a store but no bootstrap, no instance queries and no MCP enable. A real directory behaves as before.

Changes: chat_panel.ts, child-store.ts, two new test files, and the overlay manifest (refresh_manifest.mjs).

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Config / infrastructure (CI, tooling, build, docs)
  • Breaking change (fix or feature that changes existing behavior)

Verification

  • pnpm -r run build exits 0
  • pnpm -r run test exits 0 (or pnpm -r run typecheck if tests aren't relevant)
  • Manual testing described below

pnpm -r run typecheck passes. The new splash tests (test/chat_panel_splash_timeout.test.ts) run the overlay's own script against a small fake DOM under fake timers. 3 of the 7 failed before the change, and all pass now. The new child-store tests (3) ran with Bun in WSL: 2 failed before the change and all pass now. The 5 upstream child-store.test.ts tests also pass. drift_gate.mjs passes.

Manual Testing Notes

  • The root cause is not found. I booted the engine 1.18.30 (the CI binary) in WSL with a clean HOME, with a provider config plus auth.json, and with a server password and Basic auth. /api/reference returned 200 with data: [] for no directory, directory=/, a real directory and a missing directory. The issue is from September (extension 0.3.7), and the engine has been rebased since. I did not test on Windows or macOS. The reporter's server log, platform and engine version are still needed.
  • The app tests are not run by CI. The engine-tests lane covers only packages/opencode. child-store-empty-directory.test.ts runs with bun test --conditions=solid --preload ./happydom.ts in the app package. I ran it by hand.
  • The Reload button was tested against a fake DOM, not in a real VS Code webview. Setting iframe.src to its own value reloads the iframe in browsers, but I did not check it in the webview.
  • The 30 s time-out is my choice. A slow cold start can take longer, so the message is neutral and a late app-ready still works.

🤖 Generated with Claude Code

…n empty directory

Two client-side gaps from #1534, both independent of the /api/reference 500.

- adopt() splash: the overlay faded only on app-ready, so a stalled chat app left
  "Getting Amico ready..." on screen forever. After 30 s without app-ready the
  overlay now says "Amico is taking longer than expected to start." and shows a
  Reload button. Reload reloads the iframe, resets the text and arms the time-out
  again. A late app-ready still fades the splash and hides the message.
- child-store: child("") and peek("") logged "No directory provided" and carried
  on, turning the instance queries on and asking the server for directory=/. An
  empty directory now gets a store but no bootstrap, no instance queries and no
  MCP enable.

Tests first: 3 splash tests and 2 child-store tests failed before the change.
The 500 itself does not reproduce on engine 1.18.30, so this does not close
the issue.

Refs #1534

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: adb679a0-799d-4500-b3ca-6681cfbfe96b
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@bc037
bc037 marked this pull request as ready for review December 3, 2026 18:22
@bc037
bc037 merged commit d0a0385 into main Dec 3, 2026
12 checks passed
@bc037
bc037 deleted the fix/1534-splash-fallback branch December 3, 2026 18:23
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.

2 participants