Skip to content

Conversation

@bishoy-at-pieces
Copy link
Collaborator

No description provided.

Updated context management to use flattened anchors and assets, removing direct manipulation of internal lists. Modified command and view logic to pass context paths explicitly, improving clarity and reducing side effects. Also added platform information when creating new anchors and ensured user profile is set during async PiecesOS launch.
Copilot AI review requested due to automatic review settings September 18, 2025 03:48
Copy link
Contributor

Copilot AI left a comment

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 refactors the context and command handling for anchors and assets in the Pieces plugin by centralizing state management and improving how context paths are passed between components.

Key changes:

  • Refactored context management to use conversation-level anchors and assets instead of local copies
  • Updated command handling to pass context paths through method parameters
  • Added platform specification when creating anchors

Reviewed Changes

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

Show a summary per file
File Description
startup_utils.py Added user profile initialization during PiecesOS startup
copilot/ask_view.py Modified render_conversation to accept context_paths parameter
copilot/ask_about_command.py Refactored to use local context_paths and pass them to render_conversation
_pieces_lib/pieces_os_client/wrapper/context.py Removed local anchor/asset storage, now references conversation-level collections
_pieces_lib/pieces_os_client/wrapper/basic_identifier/anchor.py Added platform parameter to anchor creation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@bishoy-at-pieces bishoy-at-pieces merged commit cbd8ef7 into main Sep 18, 2025
3 checks passed
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.

2 participants