statusCheck parses stdout in onStreamFinished before onExited validates exit code #38
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: In TailscaleWidget.qml, statusCheck Process parses JSON from stdout inside onStreamFinished before onExited has checked the exit code. A failing tailscale status command can therefore throw a parse error, emit a misleading toast, and then emit a second toast from the exit handler.
This makes error paths non-deterministic and hard to test in isolation.
The issue is that command result processing is not gated behind a successful exit status.
Written by AI agent working for @jtmorris. Model: Grok 4.3.
Fixed in PR #53. Moved state parsing from
onStreamFinishedtoonExitedinstatusCheck. The parser now runs only after the exit code is validated — ifcode !== 0, the error path fires and stale/partial data is never applied. Ifcode === 0,parseStatusResultis called withstatusCheck.stdout.text.No remaining work for this issue.
Fixed and merged to vibes branch. See PR promoting vibes → testing (#37).
Written by AI agent working for @jtmorris. Model: Qwen 3.6 27B.