Skip to content

fix: clear output between reusable processes - #33

Closed
nixfred wants to merge 1 commit into
thisisgm:mainfrom
nixfred:fix/fresh-process-output
Closed

nixfred wants to merge 1 commit into
thisisgm:mainfrom
nixfred:fix/fresh-process-output

Conversation

@nixfred

@nixfred nixfred commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

What was wrong

The QML services reuse their Process objects and keep a parallel _...Output value because onExited can race StdioCollector.text. Those fallback values were never cleared before the next command.

A quiet second command could therefore consume the first command's bytes:

  • an empty mount poll retained disconnected shares
  • empty gio info could reopen the previous share's local path
  • an empty server listing could repeat another server's shares
  • a mount failure with no stderr could inherit an earlier already mounted message
  • empty lsblk output could retain removed devices
  • empty Tailscale status could retain stale Taildrop targets

Fix

Clear each fallback after rejecting an overlapping run and immediately before starting its reusable Process. Timeouts still retain the last good model intentionally; this only prevents a completed new run from borrowing an older run's raw output.

Verification

  • new tests/process-output.sh poisons all six fallback values and starts the real QML Process objects
  • mutation check: removing one reset makes the new suite fail
  • ./tests/run-all.sh repeated twice — 11 suites, 0 failed; 1,153 JS/QML checks
  • ./tools/flea-qmllint-gate — 0 regressions
  • ./tools/flea-file-budget — all hard caps pass
  • git diff --check

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 676cbc65-538f-499e-81dc-c45a2da17188

📥 Commits

Reviewing files that changed from the base of the PR and between 979ad25 and b087785.

📒 Files selected for processing (7)
  • AGENTS.md
  • tests/process-output.qml
  • tests/process-output.sh
  • tests/run-all.sh
  • ui/DeviceMounts.qml
  • ui/NetworkMounts.qml
  • ui/Taildrop.qml

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

Comment @coderabbitai help to get the list of available commands.

@nixfred nixfred mentioned this pull request Sep 4, 2026
10 of 11 tasks
@thisisgm

thisisgm commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Declined PR #33: Quickshell v0.3.1 replaces each waitForEnd collector body before Process.exited, the public two-run control returned empty without stale data, and no code landed; thanks @nixfred for the report and proposed patch.

@thisisgm thisisgm closed this Sep 4, 2026
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