Skip to content

fix: topic session isolation + security hardening#91

Merged
royosherove merged 1 commit intomainfrom
fix/topic-chat-isolation
May 10, 2026
Merged

fix: topic session isolation + security hardening#91
royosherove merged 1 commit intomainfrom
fix/topic-chat-isolation

Conversation

@royosherove
Copy link
Copy Markdown
Member

Codex review fixes: chat-scoped topic IDs, scoped listing, group rejection, atomic persistence. 403 tests green.

Fixes from Codex full review:

1. HIGH: Topic sessions now scoped per chat — thread ID is
   'topic:<chatId>:<topicName>' not just 'topic:<topicName>'.
   Two users with same topic name get separate sessions.

2. HIGH: listTopics() now filters by calling chat's ID prefix.
   Users only see their own topics.

3. MEDIUM: /topic rejected in groups with helpful message
   (groups should use Telegram forum topics instead).

4. MEDIUM: Atomic persistence — temp file + rename pattern
   prevents corruption on crash.

403 tests green.
@royosherove royosherove merged commit 533334b into main May 10, 2026
1 check 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.

1 participant