-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: add global unified context mode with UMO restoration for cross-platform conversation continuity #4850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
|
@copilot 还得把send message to user增加一个umo参数(或者新增一个tool,带有这个参数,这会很好) 会通过这个tool来发送消息。此外,需要预先备份好原来的umo,在respond stage发送前恢复,以及send streaming那里 |
…o_user tool Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Done in commit 3091b92. Changes made:
The UMO is backed up in WakingCheckStage and restored in RespondStage before all send operations, ensuring messages are delivered to the correct original session. |
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Implements global unified context mode allowing all platforms/sessions to share a single conversation history while maintaining platform awareness and proper message routing.
Changes
Configuration
platform_settings.global_unified_context_mode(default:false)GLOBAL_UNIFIED_CONTEXT_UMO = "global::global"for shared context identifier andORIGINAL_UMO_KEY = "original_umo"for consistent key usageWakingCheckStage (
pipeline/waking_check/stage.py)MainAgent (
astr_main_agent.py)[Context: Platform={id}, Type={type}, Session={session}] {user_message}RespondStage (
pipeline/respond/stage.py)SendMessageToUserTool (
astr_main_agent_resources.py)sessionparameter to tool schema for explicit session targetingplatform:type:session_idDashboard Theme (
dashboard/src/theme/DarkTheme.ts)#3c96ca, Secondary:#2288b7Behavior
LLM maintains continuity across platforms while understanding message origin through injected context tags. Messages are correctly routed to original sessions through UMO restoration.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.