feat: add global unified context mode with UMO restoration for cross-platform conversation continuity#4850
Draft
feat: add global unified context mode with UMO restoration for cross-platform conversation continuity#4850
Conversation
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add global context model with configuration option
feat: add global unified context mode for cross-platform conversation continuity
Feb 3, 2026
Member
|
@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>
Contributor
Author
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>
Copilot
AI
changed the title
feat: add global unified context mode for cross-platform conversation continuity
feat: add global unified context mode with UMO restoration for cross-platform conversation continuity
Feb 3, 2026
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.