Skip to content

fix: scope Telegram sessions and plans to the requesting chat (M-2)#59

Merged
jkyberneees merged 1 commit into
mainfrom
fix/m2-telegram-session-chat-scope
Jul 18, 2026
Merged

fix: scope Telegram sessions and plans to the requesting chat (M-2)#59
jkyberneees merged 1 commit into
mainfrom
fix/m2-telegram-session-chat-scope

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Scopes Telegram session/plan commands to the requesting chat, closing cross-chat listing/resume/prune/read/delete paths (M-2).

Changes:

  • internal/telegram/session.go: ListSessions, ResumeSession, PruneSessions now filter by tg- prefix; ResumeSession rejects IDs from other chats.
  • internal/telegram/plan.go: plans stored under ~/.odek/plans/chat/; ListPlans/ReadPlan/DeletePlan/MostRecentPlan are chat-scoped (chatID 0 = global/admin scope).
  • cmd/odek/telegram.go: /sessions, /resume, /prune, /plan, /plans, /plan_view, /plan_delete, /plan_resume wired to chat-scoped APIs.
  • Added regression tests in internal/telegram/chat_scope_test.go and updated existing tests to match the new behavior.
  • Updated docs/SECURITY.md, docs/TELEGRAM.md, and AGENTS.md.

@jkyberneees
jkyberneees merged commit 465a433 into main Jul 18, 2026
5 of 7 checks passed
@jkyberneees
jkyberneees deleted the fix/m2-telegram-session-chat-scope branch July 18, 2026 12:56
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