fix(controller): keep permissions synced with live threads#106
fix(controller): keep permissions synced with live threads#106kesslerio wants to merge 1 commit into
Conversation
|
Thank you for your contribution! Unfortunately there are still changes needed to support such an ambitious plugin in OpenClaw. Some of this functionality is now being included directly in OpenClaw. I have made a new project, https://github.com/pwrdrvr/PwrAgent, that gives you a Codex Desktop replacement app (uses Codex) but also integrates with messaging with openclaw-codex-app-server-like functionality. In that project if you change Full Access to Default Access in PwrAgent Desktop it will change on the status card in any bound threads across all platforms that have the thread bound. Similarly, if you change access from a bound thread it will warn you (if not acknowledged already) about risks of Full Access, then update all other bound platforms and the desktop app as well. I think you'll like it. Please give it a try! |
summary
/cas_statusand the permissions toggle now tell the truth about the live thread. If Codex ignored a downgrade request, the controller could still writedefaultinto the binding and act like it worked. From there the status card and the stored binding drifted out of sync.what changed
setThreadPermissionsreturns/cas_statuswhen the thread reports something different and no real migration is pendingwhy this is separate
This is related to #104, but it is not the same bug.
#104is about stale approval and questionnaire state blocking full-access transitions. This patch fixes a different contract bug: the controller was trusting the requested permissions mode more than the state Codex returned.tests
pnpm test -- src/controller.test.tspnpm typecheckAI assistance