Repository navigation
Conversation
`dropbox-cli status` mints a brand-new cli_link_nonce on every invocation. The Dropbox widget polls every 60s, so any login URL opened from the widget was invalidated before the user could finish browser authentication. Only call `dropbox-cli status` when the account is linked (`~/.dropbox/info.json` exists and points to a valid Dropbox path). For unlinked installs, report the state as "Not authenticated" instead of asking the daemon for a status that would rotate the nonce. Fixes omacom#12637. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Verified: No actionable regression found in the inspected and synthetic-tested scope at
Synthetic checks also covered corrupt metadata, a missing account directory, and linked-account running, stopped and command-failure responses. Source inspection confirms that Log in remains available when installed and not busy, and still invokes Review informationTest scope: Pinned source inspection and isolated helper checks with a synthetic CLI. No real Dropbox daemon, browser linking flow or QML execution was tested. The existing account-path heuristic does not establish daemon authentication; relinking with stale metadata remains unverified. The complete shell test file was not run. 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 assessments, followed by verification against source and targeted synthetic evidence. |
|
Tested in the Omarchy VM (Omarchy 4.0.4 / Python 3.14):
Works as expected! |
|
Reviewed at 9389ef1 and reproduced on a disposable Omarchy VM with a real, unlinked Dropbox daemon ( Tests on the VM: Second opinion from Codex Medium. It agreed the fix is proportionate and in the right place. Its independence is not guaranteed. It added one side effect worth knowing: with the account unlinked, For the maintainer: #8499 takes the login URL from this same status poll while the account is unlinked, so the two cannot both land as written. Once this merges, #8499 would get "Not authenticated" where it expects the URL. This change is the one that matches #12637. #11955's faster polling during a pending link depends on the poll not rotating the nonce, which this provides. Waiting on the maintainer. |
|
#15135 has been merged to I compared the two diffs against @surim0n, thank you for tracking down the nonce rotation. Nothing is waiting on you here. |
Fixes #12637.
dropbox-cli statusmints a brand-newcli_link_nonceon every invocation. The Dropbox widget polls every 60s by default, so any login URL opened from the widget was invalidated before the user could finish authenticating in their browser. The web page still showed success, but the device never linked and the widget stayed greyed out.Changes:
dropbox-cli statuswhen the account is already linked (~/.dropbox/info.jsonexists and points to a valid path)"Not authenticated"instead of asking the daemon for a status that would rotate the nonceTested:
test/shell.d/dropbox-test.shnow includes a regression test that creates a fakedropbox-cli, runsstatus.pywith no~/.dropbox/info.json, and asserts the fakedropbox-cliis never invokedGenerated with Devin