Skip to content

fix(zendesk): unassign tickets whose live chat is stuck open - #84

Merged
Bilb merged 1 commit into
mainfrom
fix/zendesk-unassign-open-chats
Nov 13, 2026
Merged

Bilb merged 1 commit into
mainfrom
fix/zendesk-unassign-open-chats

Conversation

@Bilb

@Bilb Bilb commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Zendesk never ends a messaging chat that started while the ticket had an assignee, and the auto-assign trigger gives every ticket one. When a customer writes back on a solved Twitter DM ticket, their message stays in a chat only the assignee (the API user) can see. The digest already listed those tickets; nobody acted on the list, and ticket 29557 sat stuck.

The digest now unassigns every ticket its open-chat sweep finds. The chat ends and the message lands on the ticket about 10 minutes later. Those tickets stay unrecorded, so the next digest reports them with the new message.

  • api.unassign and triage.release_open_chats
  • The 💬 line says what was unassigned, and lists apart any ticket Zendesk refused, for an admin
  • --dry-run, --no-discord and rehearsals list without unassigning, like drafts
  • Docs: "Live chats stuck open" in docs/jobs/zendesk-digest.md

Limits: the digest runs daily, so a stuck chat can wait up to a day. If the hourly auto-assign automation reassigns before the chat ends, the next run retries.

Tests: uv run python -m unittest discover -s tests -t . (1010 pass).

Zendesk never ends a messaging chat that started while the ticket had an
assignee, and the auto-assign trigger gives every ticket one. A customer
writing back on a solved Twitter DM ticket (29557) was therefore visible to
nobody but the API user until someone unassigned it by hand.

The digest now unassigns every ticket its open-chat sweep finds, so the chat
ends and the message lands on the ticket about 10 minutes later. A ticket
Zendesk refuses to unassign stays listed for an admin. Dry runs, --no-discord
and rehearsals still only list them.
@Bilb
Bilb merged commit 541ea9c into main Nov 13, 2026
3 checks passed
@Bilb
Bilb deleted the fix/zendesk-unassign-open-chats branch November 13, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant