Repository navigation
Conversation
PLAN_QUOTAS guessed Basic at 2 GB and produced >100% usage when referral/bonus space exceeded that floor. Emit quotaBytes 0 / quotaKnown false until real quota data exists.
|
Verified: No substantive issue found in the reviewed scope at Synthetic Basic account, 2.5 GB sparse file plus a six-byte file:
The existing panel calls that model function. The percentage above is helper output, not a claim that the current panel displays it. The new regression test passes on head and fails at its quota assertion when run against the baseline helper. Review informationTest scope: Isolated synthetic accounts exercised the real Python helper and JavaScript formatter, including CLI-absent and stubbed-CLI paths. QML integration was source-inspected, not visually rendered. No real Dropbox account, daemon or remote quota was tested. Used bytes remain a local folder measurement, not total cloud usage. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium initial inspection and synthesis, independent Opus 5.5 High and GPT 6 Sol Xhigh technical reviews, followed by verification against targeted evidence and a fresh Astra Medium editorial check. |
|
Tested in the Omarchy VM running Omarchy 4.0.4-1 with Python 3.14.7 and Quickshell 0.3.1:
Behavior is clean and verified with no regressions. |
|
Reviewed at Reproduction. I set up a fake Basic account holding a 2.5 GB file and ran Tests on the worker. Scope. The change is proportionate. It deletes the table and keeps the output shape. Every reader of these fields ( Second opinion. Codex Medium reviewed the same diff and found no defect. It reached the same view on proportionality and on the consumers; independence is not guaranteed. It also pointed out that Overlap with other open PRs. #12781 and #11436 add a This fixes #12638. It is waiting on the maintainer. |
quattro grew its own status.py fixture in dropbox-test.sh (omacom#15135), so the regression now uses that fixture instead of a second temp dir and EXIT trap, and drops the assertion that grepped status.py for PLAN_QUOTAS, which the repository's testing rules forbid. The file keeps quattro's 100644 mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Low impact] The PR appears safe to merge. SummaryStops the Dropbox panel from guessing storage quota from the plan name.
Reviews (3) · Last reviewed commit: "Merge quattro into fix/12638-no-hardcode..." · Reviewed by Greptile |
|
This had stopped merging cleanly: #15135 added a Re-verified on a disposable Omarchy worker at 9d091a1. Second opinion. Codex Medium and muse-wonder via pi (thinking high) reviewed the merged change: the conflict resolution, whether the regression fails on CI is green at this head. This fixes #12638 and #7597, and it is waiting on the maintainer. My earlier note still applies to #12781 and #11436: they fall back to |
quattro's --status-only fast path landed on the same lines as this branch's removal of the plan-quota math, and its Dropbox metadata exclusion test was appended where this branch's regression sits. Keep the status-only scan without the usage_percent line, and run the plan-quota regression after the exclusion test so its extra file does not disturb that test's exact byte count.
|
This had stopped merging cleanly again. Re-verified on a disposable Omarchy worker at 7b25510. Second opinion. Codex Medium and muse-wonder via pi (thinking high) reviewed the merge: the conflict resolution, how This fixes #12638 and #7597, and it is waiting on the maintainer. #12781 and #11436 are still open and still fall back to |
|
Merged Conflict: Tests, all run on a fresh Linux box. The test file was deleted upstream, so I ran this PR's previous version of it out of tree:
Prepared by Claude Opus 5.5 via Hermes Agent; reviewed under kvnloo's account. |
|
Re-verified The live panel below uses a synthetic Basic account holding a 2.5 GB sparse file. These captures establish the Stored line's behavior, without testing a real Dropbox account or cloud-side usage. Restoring the head after the base capture returns the panel to “2.5 GB”. The worker has been destroyed. GPT-6 in Codex (reasoning effort not exposed) reviewed the change, and Opus 5.5 High and muse-wonder via pi (thinking high) gave the second opinion on this head. Both found no defect and agreed that the field consumers already handle an unknown quota; that agreement is not guaranteed to be independent. CI passes, and Greptile scores this head 5/5 with no findings. This fixes #12638 and #7597 and waits on the maintainer. The earlier note about reconciling the optional quota overrides in #11436 and #12781 still applies. |




What
Remove the hardcoded
PLAN_QUOTAStable from the Dropbox panel status helper. Until real quota data is available, emitquotaBytes: 0,usagePercent: 0, andquotaKnown: false.Why
subscription_typedoes not determine storage quota (referral/bonus/legacy space). Looking up Basic → 2 GB produced impossible figures like 1172% / "23.44 GB of 2 GB". The panel already renders used-only text whenquotaKnownis false.Tests
bash test/shell.d/dropbox-test.sh— existing model helpers plus a regression that runsstatus.pyagainst a fake Basicinfo.jsonand asserts unknown quota / noPLAN_QUOTAS.Fixes #12638
Fixes #7597