pending.nvim/lua/pending
Barrett Ruth 2742d1f310 fix(oauth): resolve re-auth deadlock and improve flow robustness
Problem: in-flight TCP server held port 18392 for up to 120 seconds.
Calling `auth()` again caused `bind()` to fail silently — the browser
opened but no listener could receive the OAuth callback. `_wipe()` on
exchange failure also destroyed credentials, forcing full re-setup.

Solution: `_active_close` at module scope cancels any in-flight server
when `auth()` or `clear_tokens()` is called. Binding is guarded with
`pcall`; the browser only opens after the server is listening. Swapped
`_wipe()` for `clear_tokens()` in `_exchange_code` to preserve
credentials on failure. Added `select_account` to `prompt` so Google
always shows the account picker on re-auth.
2026-03-06 15:43:52 -05:00
..
sync fix(oauth): resolve re-auth deadlock and improve flow robustness 2026-03-06 15:43:52 -05:00
buffer.lua feat: warn on dirty buffer before store-dependent actions (#83) 2026-03-06 12:08:10 -05:00
complete.lua refactor: remove file token feature (#50) 2026-02-26 22:41:38 -05:00
config.lua feat(sync): add opt-in remote deletion for gcal and gtasks (#85) 2026-03-06 13:12:53 -05:00
diff.lua fix: empty buffer placeholder and checkbox pattern fixes (#82) 2026-03-06 12:07:52 -05:00
health.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
init.lua feat: :Pending auth subcommands + fix #61 (#84) 2026-03-06 12:36:47 -05:00
log.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
parse.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
recur.lua feat: time-aware due dates, persistent undo, @return audit (#33) 2026-02-25 20:37:50 -05:00
store.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
textobj.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
views.lua feat: warn on dirty buffer before store-dependent actions (#83) 2026-03-06 12:08:10 -05:00