test(app): verify streaming chat and stage debugging in the browser

This commit is contained in:
2026-10-24 02:08:26 +01:00
parent 8e980564cb
commit d915f69226
5 changed files with 252 additions and 10 deletions
+21 -4
View File
@@ -5,10 +5,27 @@ tests or phone installation are authorized/claimed; deployment is web + APK feed
| Item | Source | Verification | Landing | Deployment |
| --- | --- | --- | --- | --- |
| Send follow-ups while busy | Composer keeps Send beside a separate Stop; server queues without interruption | Both UI hosts: repeat follow-ups, pending-ack duplicate guard, newer draft preservation, 320px/2x text. 14 composer widget tests pass; attachment-send tests passed; server queued-prompt regression passes | Pending manager commit | Pending combined release |
| Streamed reasoning | Independent reasoning worktree | Pending | Pending | Pending |
| Collapsed stage input/output | Independent stage-debug worktree | Pending | Pending | Pending |
| Exact-visit raw input/output/memory/session debugging | Independent stage-debug worktree | Pending | Pending | Pending |
| Send follow-ups while busy | `91854148`: Send beside separate Stop; server queues without interruption | Both hosts: repeated follow-ups, pending-ack duplicate guard, newer draft preservation, 320px/2x text; server queued-prompt regression passes | Main | APK building; web installer next |
| Streamed reasoning | `fa818341` + integration `8e980564`: live inline disclosure, active reply identity survives queued follow-ups | Full integrated check + browser visible streaming/OCR and post-follow-up update pass | Merged main; ancestry verified | APK building; web installer next |
| Collapsed stage input/output | `027be68a`: Summary sections start closed | Both-host regressions fail before fixes; real browser confirms hidden bodies initially | Merged main; ancestry verified | APK building; web installer next |
| Exact-visit raw input/output/memory/session debugging | `28539298`: recorded turn documents in Session with safe viewer | Both-host missing/capture/repair/repeated-visit isolation tests; real browser opens all three exact recorded files | Merged main; ancestry verified | APK building; web installer next |
## Integrated acceptance
- `tool/check_full.sh`: clean analysis, all 1,762 tests pass.
- `flutter build web --no-pub -o build/chat_stage_debug_web`: pass. Avoid concurrent
pub-get jobs in one checkout; their generated iOS plugin symlink updates race.
- `node tool/chat_stage_debug_probe.mjs build/chat_stage_debug_web build/chat-stage-debug-evidence`:
17 checks/8 captures pass. Uses the normal app and loopback protocol/artifact
fixtures, actual pointer/text input and OCR for canvas-painted SelectableText.
Confirms live reasoning plus text, queued follow-up without interrupt, further
reasoning updates, collapsed stage fields, session export action, and exact
input.md/output.md/memory.md bytes with Back restoring the same visit.
- OpenCode normalization regressions `TestChatStreamRealV2Shapes` and
`TestChatDeltaPartIDsNeverCollide` pass (no backend changes).
- All UI code remains under app/; no production chat/run mutations or device use.
- App working agreement updated as requested: authorized installers/APK delivery
are allowed; default testing stays on web and device leases remain required.
## Build recovery
+30 -1
View File
@@ -30,4 +30,33 @@
The user explicitly approved overriding the app's no-deploy/no-APK rules for
the requested web/server installation and APK publication, without device tests.
Deployment results are recorded after running the installers.
Source landed on main as `7f88f14a`; ancestry checked after commit. Unrelated
untracked `.claude/` remains untouched (the installer therefore labels the server
build dirty).
- `./install --web-port 8083`: built and installed the Docker web bundle and
native server. Port 8082 belongs to an unrelated scratch server and was not
disturbed. No pipeline definitions or versions were created or changed.
- The old server/ntfy were managed by separate legacy LaunchAgents, not the
installer supervisor. After checking no executing runs or active chats, the
legacy server/ntfy agents were disabled/unloaded (their plist files retained),
and `net.a-wan.pipelines` now supervises server/ntfy/web on 8080/8090/8083.
Server ping identifies commit `7f88f14a`; the original OpenCode endpoint and
existing database/artifacts are retained. The legacy web agent remains running
so existing public URLs do not change.
- Installation/config/binary/SQLite rollback material:
`~/.local/share/pipelines/backups/navigation-20261024-014504/`.
- Copied the installed web bundle to the existing preview's root using a rename
swap. Rollback: `app/build/web-before-native-navigation-1792802826/`.
- Authenticated JS byte hashes match the installed bundle at localhost ports
8083, 8095, 8098 and the existing tailnet HTTPS ports 8443 and 8096. All five
still reject unauthenticated bundle requests. JS SHA256:
`49915ab0084e9b6437db2e8151e07397d187ab064a23687664cbf09ea7410a9e`.
- Reran all 12 browser checks against the Docker-built installed bundle through
isolated fixtures; captures/results: `app/build/navigation-deployed-evidence/`.
- `./install --apk` began the Docker APK build. The tool invocation timed out
after 120 seconds but left its container building. Waiting for that exact
container found a later Gradle daemon failure and confirmed Docker OOM event.
No APK from that failed build was published. Docker build-only memory limits
are corrected in `49b92ee0`; publication proceeds with the combined follow-up
release tracked in `chat-stage-debug-queue.md`.