Skip to content

Share chat context across group turns#162

Merged
pmbstyle merged 1 commit into
mainfrom
feature/shared-chat-context
Jun 6, 2026
Merged

Share chat context across group turns#162
pmbstyle merged 1 commit into
mainfrom
feature/shared-chat-context

Conversation

@pmbstyle

@pmbstyle pmbstyle commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Share recent conversational history across private and group chat turns through a common conversation scope.
  • Pass Telegram and WhatsApp group/private source context into the Octo prompt after group addressing has allowed the turn.
  • Keep internal heartbeat, worker, planner, scheduler, and control-plane entries out of conversational recent history.

Why

Addressed group-chat messages should be treated as normal conversation context for the responding agent, while ignored group messages should stay outside memory and model context.

Validation

  • uv run ruff check src/octopal/runtime/memory/service.py src/octopal/runtime/octo/prompt_builder.py src/octopal/runtime/octo/router.py src/octopal/runtime/octo/message_runtime.py src/octopal/channels/telegram/handlers.py src/octopal/channels/whatsapp/runtime.py tests/test_memory_system.py tests/test_octo_prompt_history_timestamps.py
  • uv run pytest

@pmbstyle pmbstyle self-assigned this Jun 5, 2026
@pmbstyle pmbstyle marked this pull request as ready for review June 5, 2026 23:59
@pmbstyle pmbstyle merged commit aaf8b24 into main Jun 6, 2026
4 checks passed
@pmbstyle pmbstyle deleted the feature/shared-chat-context branch June 6, 2026 00:00
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