Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/pieces/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def run(self):
not Settings.user_config.skip_onboarding
and not onboarded
and not ignore_onboarding
and not self.command == "completion"
and self.command not in ("completion", "export", "import", "restore")
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

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

self.command is referenced here, but it is never assigned anywhere in PiecesCLI.run() (only the local command = args.command is set). On first-run (when onboarding is triggered) this will raise AttributeError and break onboarding. Use the local command variable in this condition or assign self.command = command before this block.

Copilot uses AI. Check for mistakes.
):
Settings.logger.print(
(
Expand Down Expand Up @@ -120,6 +120,9 @@ def run(self):
"open",
"config",
"completion",
"export",
"import",
"restore",
] and not (command == "mcp" and mcp_subcommand == "start"):
bypass_login = (
True if (command in ["version", "logout", "login"]) else False
Expand Down
3 changes: 3 additions & 0 deletions src/pieces/command_interface/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .config_command import ConfigCommand
from .db_commands import ExportCommand, ImportCommand
from .list_command import ListCommand
from .auth_commands import LoginCommand, LogoutCommand
from .search_command import SearchCommand
Expand Down Expand Up @@ -27,6 +28,8 @@

__all__ = [
"ConfigCommand",
"ExportCommand",
"ImportCommand",
"ListCommand",
"LoginCommand",
"LogoutCommand",
Expand Down
Loading