fix(review): apply PR #3774 review fixes

- Clear pending_user_turn after shortcut command persistence
- Guard is_allowed against None allow_from values
- Update pairing help text for two-arg revoke
- Reuse format_expiry in CLI pairing list
This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-05-15 15:46:44 +08:00
1 parent b68e9fa21e
commit eab35af9f3
4 files changed
+10 -9

No files matched your search

+1
View File
@@ -1283,6 +1283,7 @@ class AgentLoop:
"assistant", result.content, _command=True
)
self.sessions.save(ctx.session)
self._clear_pending_user_turn(ctx.session)
return "shortcut"
return "dispatch"