Skip to content

fix(views): acknowledge note modal ephemerally to prevent duplicate thread activity - #49

Merged
espdesign merged 1 commit into
developfrom
fix/duplicate-thread-note-notification
Sep 24, 2026
Merged

espdesign merged 1 commit into
developfrom
fix/duplicate-thread-note-notification

Conversation

@espdesign

Copy link
Copy Markdown
Collaborator

Summary

Fixes duplicate note activity messages in Task Thread Workspaces by acknowledging TaskNoteModal submissions with an auto-dismissing ephemeral toast, leaving the asynchronous Outbox worker as the single source of truth for public thread activity logs and watcher dispatch.

Closes #48

Root Cause

Previously, TaskNoteModal.on_submit replied to the modal interaction with ephemeral=False, sending a public message directly into the task thread. Concurrently, task_service.add_note produced a NOTE_ADDED transactional outbox event, which the outbox worker dispatched via DiscordNotifier._handle_note_added (workspace.post_activity), resulting in two public messages with identical note contents in the thread.

Changes

  • Updated TaskNoteModal.on_submit in src/adapters/discord_bot/views/task_modals.py to reply with ephemeral=True and schedule toast dismissal via menu_manager.schedule_toast_dismissal.
  • Added unit and lifecycle regression tests in tests/test_discord_thread_lifecycle.py verifying ephemeral acknowledgment and toast scheduling.

Verification

  • make check passing (lint, format, and 394 tests passed).
  • Rebuilt and validated app container via make docker-build.

…hread activity

Respond ephemerally with auto-dismissal toast upon submitting TaskNoteModal,
ensuring the transactional Outbox pipeline remains the single source of truth
for public thread activity logs and watcher dispatch.

Closes #48
@espdesign
espdesign merged commit 30af210 into develop Sep 24, 2026
8 checks passed
@espdesign
espdesign deleted the fix/duplicate-thread-note-notification branch September 24, 2026 22:07
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.

[Bug]: Duplicate note activity messages posted to Task Thread Workspace

1 participant