Skip to content

Fix shell portal upgrade logic and add ShellPayload output separation…#2029

Merged
KCarretto merged 2 commits intomainfrom
shell-portals-and-wasm
Mar 6, 2026
Merged

Fix shell portal upgrade logic and add ShellPayload output separation…#2029
KCarretto merged 2 commits intomainfrom
shell-portals-and-wasm

Conversation

@KCarretto
Copy link
Collaborator

  • fix: upgrade shell portal handling to use ShellPayload with output and error fields

This commit resolves issues with portal upgrades in shellv2. It updates the polling logic in the websocket handler to use the shell's beacon edge to identify active portals. It extends the ShellPayload to include distinct output and error fields, migrating away from using BytesPayload for portal output to provide better standard stream separation. The rust implant has been updated to use these new fields. Finally, it adds a descriptive hover tooltip to the frontend to communicate portal state.

  • fix: upgrade shell portal handling and UI indicators

This commit improves the active portal handling and UI feedback in shellv2. It updates the polling logic to find the active portal via the shell's beacon edge instead of the shell edge. It introduces output and error fields to the ShellPayload for correct standard stream routing, mitigating the need to parse payload bytes manually. Finally, it adds a connection-aware, color-coded tooltip to the frontend shell status bar to inform the user about the active low-latency portal state.

…#2024)

* fix: upgrade shell portal handling to use ShellPayload with output and error fields

This commit resolves issues with portal upgrades in shellv2. It updates the polling logic in the websocket handler to use the shell's beacon edge to identify active portals. It extends the `ShellPayload` to include distinct `output` and `error` fields, migrating away from using `BytesPayload` for portal output to provide better standard stream separation. The rust implant has been updated to use these new fields. Finally, it adds a descriptive hover tooltip to the frontend to communicate portal state.

Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>

* fix: upgrade shell portal handling and UI indicators

This commit improves the active portal handling and UI feedback in shellv2. It updates the polling logic to find the active portal via the shell's beacon edge instead of the shell edge. It introduces `output` and `error` fields to the `ShellPayload` for correct standard stream routing, mitigating the need to parse payload bytes manually. Finally, it adds a connection-aware, color-coded tooltip to the frontend shell status bar to inform the user about the active low-latency portal state.

Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
@KCarretto KCarretto requested a review from hulto March 6, 2026 05:17
@KCarretto KCarretto marked this pull request as ready for review March 6, 2026 05:17
@KCarretto KCarretto requested a review from Cictrone March 6, 2026 05:19
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
2743    ±0 2743    ±0 0    ±0 0    ±0 0    ±0 0    ±0 1ms    ±0

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#1525 2743 2743 0 0 0 0 38.4s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
2743 0 0 5.5s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
TestDockerExecutor_Build_ContextCancellation 1 5.5s 5.5s
eldritch-libsys: std::dll_inject_impl::tests::test_dll_inject_simple 1 5.1s 5.1s
TestInteractiveShell 1 5.1s 5.1s
TestOtherStreamOutput 1 5.0s 5.0s
imix::bin/imix: install::tests::test_install_execution 3 1.6s 4.7s
imix::bin/imix: install::tests::test_install_execution 3 1.6s 4.7s
imix::bin/imix: install::tests::test_install_execution 3 1.6s 4.7s
imix::bin/imix: tests::task_tests::test_task_streaming_error 3 3.0s 3.0s
imix::bin/imix: tests::task_tests::test_task_streaming_output 3 3.0s 3.0s
imix::bin/imix: tests::task_tests::test_task_streaming_error 3 3.0s 3.0s

🎉 No failed tests in this run. | 🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

@KCarretto KCarretto enabled auto-merge March 6, 2026 06:43
@KCarretto KCarretto disabled auto-merge March 6, 2026 16:32
@KCarretto KCarretto merged commit a519a3a into main Mar 6, 2026
12 of 13 checks passed
@KCarretto KCarretto deleted the shell-portals-and-wasm branch March 6, 2026 16:32
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