Skip to content

fix(inbox): let staff take over after complete AI replies - #46

Merged
EndlessCCL merged 1 commit into
linkcraftstudio:mainfrom
EndlessCCL:fix/inbox-human-takeover
Oct 26, 2026
Merged

EndlessCCL merged 1 commit into
linkcraftstudio:mainfrom
EndlessCCL:fix/inbox-human-takeover

Conversation

@EndlessCCL

Copy link
Copy Markdown
Contributor

What this PR does

Add “Take over and reply” to Inbox. If AI is replying, save the takeover request and wait until its complete answer is saved before enabling staff replies. AI failure or timeout also completes the pending takeover.

Preserve pending requests across refreshes, keep takeover events internal, and clear the widget’s thinking indicator when human handling starts. Reopened conversations restore missing customer and staff messages while preserving existing image observations.

Why

Staff need to intervene without truncating AI replies or losing conversation history.

How to review

Test takeover while AI is idle and replying, refresh during a pending request, and verify failure/timeout behavior.

Validation: 9 focused tests, affected-file ESLint and i18n checks passed. No database migration is required.

Wait for active AI replies to finish before completing manual takeover.
Persist pending requests, keep takeover events internal, clear widget waiting
state, and restore missing conversation history without replacing image observations.

Signed-off-by: EndlessCCL <endlessccl@gmail.com>
@EndlessCCL
EndlessCCL merged commit 8e3f970 into linkcraftstudio:main Oct 26, 2026
2 checks passed
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.

2 participants