Skip to content

Fix/20260407 - #826

Merged
Paul Lizer (paullizer) merged 11 commits into
Developmentfrom
fix/20260407
Apr 8, 2026
Merged

Fix/20260407#826
Paul Lizer (paullizer) merged 11 commits into
Developmentfrom
fix/20260407

Conversation

@paullizer

Copy link
Copy Markdown
Contributor
  • Fact Memory Instructions and Facts
    • Added a clearer Fact Memory experience that distinguishes always-on Instructions from relevance-based Facts on the profile page and in chat-time recall.
    • Chat responses now surface saved-memory usage more clearly through separate Instruction Memory and Fact Memory Recall thoughts and citations.
    • Admin Settings Latest Features and the user-facing Support > Latest Features page now include Fact Memory guidance and screenshots, and admins can show or hide that announcement from General > User-Facing Latest Features.
    • (Ref: semantic_kernel_fact_memory_store.py, route_backend_chats.py, route_frontend_profile.py, profile.html, support_menu_config.py, admin_settings.html, latest_features.html, fact memory guidance and latest-features coverage)

@paullizer
Paul Lizer (paullizer) merged commit 6b18370 into DevelopmentApr 8, 2026
10 of 12 checks passed
@paullizer
Paul Lizer (paullizer) deleted the fix/20260407 branch April 8, 2026 00:40

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands “Fact Memory” into a clearer Instructions vs Facts experience across profile management, chat-time recall visibility (thoughts/citations), and admin/user-facing “Latest Features” guidance—while also bundling several related UX + multi-endpoint admin improvements and their corresponding tests/docs.

Changes:

  • Introduces typed fact memory (instruction vs fact) with embeddings + CRUD support and makes chat recall more transparent.
  • Updates Admin Settings + Support “Latest Features” content (new cards, screenshots, visibility defaults) and adds navigation helpers.
  • Removes the obsolete multi-endpoint migration notice UI and adds/updates functional + Playwright UI regression coverage.

Reviewed changes

Copilot reviewed 68 out of 78 changed files in this pull request and generated 5 comments.

Show a summary per file
FileDescription
ui_tests/test_support_menu_sidebar_visibility.pyUI coverage for Support sidebar + latest-features note
ui_tests/test_single_app_template_json_bootstrap_render.pyUI coverage for admin Latest Features selectors
ui_tests/test_profile_tutorial_visibility_preference.pyUI coverage for tutorial launcher visibility preference
ui_tests/test_profile_fact_memory_editor.pyUI coverage for profile Fact Memory modal CRUD
ui_tests/test_chat_page_multi_endpoint_notice_render.pyUI coverage ensuring migration notice is absent
ui_tests/test_admin_agent_default_model_migration_panel.pyUI coverage for agent default-model migration panel
functional_tests/test_user_tutorial_visibility_preference.pyFunctional coverage for tutorial visibility preference wiring
functional_tests/test_support_menu_user_feature.pyFunctional coverage for support menu + feature visibility defaults
functional_tests/test_single_app_template_json_bootstrap_safety.pyFunctional coverage for JSON bootstrap safety updates
functional_tests/test_per_message_export.pyExpands per-message export regression coverage (Word + email)
functional_tests/test_fact_memory_streaming_retrieval_fix.pyFunctional regression for streaming fact-memory retrieval/visibility
functional_tests/test_fact_memory_profile_and_mini_sk.pyFunctional regression for typed fact memory + mini-SK support
functional_tests/test_default_model_selection_fallback.pyFunctional checks for default-model fallback gating
functional_tests/test_content_safety_thread_alignment.pyFunctional regression for safety-thread alignment behavior
functional_tests/test_chat_stream_retry_context_init_fix.pyFunctional regression for streaming retry context init
functional_tests/test_chat_multi_endpoint_notice_template_fallback.pyFunctional regression for notice removal + sanitization behavior
functional_tests/test_chat_model_selector_initial_multiendpoint_bootstrap.pyFunctional regression for initial model selector bootstrap
functional_tests/test_chat_ai_message_min_width_fix.pyFunctional regression for AI bubble min-width CSS
functional_tests/test_chat_agent_workspace_launch_selection.pyFunctional regression for workspace/group “chat with agent” selection
functional_tests/test_admin_latest_features_tab.pyFunctional regression for Latest Features admin tab structure/assets
functional_tests/test_admin_agent_default_model_migration.pyFunctional regression for agent default-model migration workflow
docs/explanation/release_notes.mdAdds v0.240.085 release note entry
docs/explanation/fixes/PER_MESSAGE_WORD_EXPORT_FORMATTING_FIX.mdFix doc for Word export formatting
docs/explanation/fixes/PER_MESSAGE_EMAIL_EXPORT_FORMATTING_AND_SUBJECT_FIX.mdFix doc for email export formatting/subject
docs/explanation/fixes/OBSOLETE_MULTI_ENDPOINT_NOTICE_REMOVAL_FIX.mdFix doc for removing obsolete migration notice
docs/explanation/fixes/FACT_MEMORY_STREAMING_RETRIEVAL_FIX.mdFix doc for streaming fact-memory recall
docs/explanation/fixes/CONTENT_SAFETY_THREAD_ALIGNMENT_FIX.mdFix doc for safety-thread alignment
docs/explanation/fixes/CHAT_STREAM_RETRY_CONTEXT_INIT_FIX.mdFix doc for streaming retry context init
docs/explanation/fixes/CHAT_MODEL_SELECTOR_INITIAL_MULTI_ENDPOINT_BOOTSTRAP_FIX.mdFix doc for initial model bootstrap
docs/explanation/fixes/AI_MESSAGE_MIN_WIDTH_FIX.mdFix doc for AI bubble min-width
docs/explanation/fixes/AGENT_DEFAULT_MODEL_MIGRATION_FALLBACK_FIX.mdFix doc for agent default-model migration/fallback
docs/explanation/fixes/AGENT_CHAT_LAUNCH_SELECTION_FIX.mdFix doc for agent launch selection
docs/explanation/features/USER_TUTORIAL_VISIBILITY_PREFERENCE.mdFeature doc for tutorial visibility preference
docs/explanation/features/MESSAGE_EXPORT.mdUpdates message export docs (Word + email draft flow)
docs/explanation/features/LATEST_FEATURES_ADMIN_TAB.mdUpdates admin Latest Features documentation
docs/explanation/features/index.mdAdds tutorial visibility preference to feature index
docs/explanation/features/FACT_MEMORY_PROFILE_AND_MINI_SK.mdFeature doc for fact memory profile + mini-SK
docs/explanation/features/AGENT_DEFAULT_MODEL_REVIEW_MODAL.mdFeature doc for agent review modal workflow
application/single_app/templates/workspace.htmlGates workspace tutorial launcher by user preference
application/single_app/templates/latest_features.htmlAdds guided-tutorial preference note for users
application/single_app/templates/chats.htmlRemoves migration notice; initial model bootstrap; gates tutorial launcher
application/single_app/templates/admin_settings.htmlAdds Latest Features cards + agent review modal + removes notice bootstrap
application/single_app/templates/_sidebar_nav.htmlAdds Latest Features submenu items (registration + fact memory)
application/single_app/support_menu_config.pyAdds fact memory card + tutorial visibility action + visibility defaults
application/single_app/static/js/workspace/workspace_agents.jsSends richer selected-agent payload when launching chat
application/single_app/static/js/workspace/group_agents.jsSends agent id in group agent chat launch payload
application/single_app/static/js/chat/chat-thoughts.jsAdds icon mapping for fact_memory thought step
application/single_app/static/js/chat/chat-streaming.jsFinalizes blocked/safety messages with correct sender
application/single_app/static/js/chat/chat-onload.jsRemoves migration notice UI handling
application/single_app/static/js/chat/chat-message-export.jsSwitches email export to backend draft endpoint + mailto launch
application/single_app/static/js/admin/admin_settings.jsAdds data-open-admin-tab navigation helper + exposes modified-state accessor
application/single_app/static/js/admin/admin_model_endpoints.jsImplements agent default-model review + selective migration workflow
application/single_app/static/css/chats.cssAdds AI bubble min-width rule
application/single_app/semantic_kernel_plugins/fact_memory_plugin.pyAdds memory_type support + update operation
application/single_app/semantic_kernel_loader.pyAdds default-model fallback for eligible agents with missing/stale bindings
application/single_app/semantic_kernel_fact_memory_store.pyAdds typed memory + embedding fields + update APIs
application/single_app/route_frontend_profile.pyAdds profile fact-memory CRUD endpoints + payload helpers
application/single_app/route_frontend_chats.pyAdds initial model selection bootstrap + removes notice wiring
application/single_app/route_frontend_admin_settings.pyClears obsolete notice text + disables notice state
application/single_app/route_backend_users.pyAllows showTutorialButtons in user settings updates
application/single_app/route_backend_agents.pyAdds admin preview/run endpoints for agent default-model migration
application/single_app/functions_settings.pyUpdates defaults + adds user tutorial preference default + sanitization tweak
application/single_app/functions_personal_agents.pyTracks modifying actor separately for admin-initiated changes
application/single_app/functions_agent_payload.pyAdds helpers to reason about default-model eligibility/binding
application/single_app/config.pyBumps VERSION to 0.240.085

'Multi-endpoint has been enabled and your existing AI endpoint was migrated. '
'Agents using the default connection may need to be updated to select a new model endpoint.'
),
'message': '',

CopilotAIApr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the default settings dict, the multi_endpoint_migration_notice block has inconsistent indentation for the message key, which looks like an accidental mis-indent and makes the defaults harder to read/maintain. Align message with the other keys in that dict.

Suggested change
'message': '',
'message': '',

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +3
# test_chat_agent_workspace_launch_selection.py
#!/usr/bin/env python3
"""

CopilotAIApr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shebang (#!/usr/bin/env python3) is on line 2, so executing this file directly will not invoke Python via the shebang. If this test is intended to be runnable as an executable script (consistent with other functional_tests), move the shebang to the first line (or remove it entirely if it’s always run via python ...).

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +3
# test_admin_agent_default_model_migration.py
#!/usr/bin/env python3
"""

CopilotAIApr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shebang (#!/usr/bin/env python3) is on line 2, so executing this file directly will not invoke Python via the shebang. If this test is intended to be runnable as an executable script (consistent with other functional_tests), move the shebang to the first line (or remove it entirely if it’s always run via python ...).

Copilot uses AI. Check for mistakes.
Comment on lines +2097 to +2100
<div class="latest-feature-thumbnail-card">
<img class="latest-feature-thumbnail-image" src="{{ url_for('static', filename='images/features/agent_default_model_review_summary.png') }}" alt="Agent default model review summary screenshot">
<div class="latest-feature-thumbnail-body">
<div class="latest-feature-thumbnail-title">Review Summary Card</div>

CopilotAIApr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New <img> elements are not self-closing. If we’re following the repo’s HTML style guidance, update these to use self-closing syntax (<img ... />) consistently (applies to the new thumbnails in this card).

Copilot uses AI. Check for mistakes.
Comment on lines +2594 to +2596
<div class="latest-feature-thumbnail-card">
<img class="latest-feature-thumbnail-image" src="{{ url_for('static', filename='images/features/facts_memory_view_profile.png') }}" alt="Profile fact memory section screenshot">
<div class="latest-feature-thumbnail-body">

CopilotAIApr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New <img> elements are not self-closing. If we’re following the repo’s HTML style guidance, update these to use self-closing syntax (<img ... />) consistently (applies to the new Fact Memory thumbnails).

Copilot uses AI. Check for mistakes.
Sign up for freeto 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.

2 participants

@paullizer