Skip to content

Remote session auto-publish fails when launched with --add-dir #5355

Open

Description

@ninjabq

Describe the bug

With settings configured to auto-publish a remote settings, launching copilot with --add-dir <path> throws the following error when attempting to publish at launch:
"Could not publish the new session … host.publishSession failed: session publication failed".

The log shows:
[copilotd_hosting::attached] application catalog write failed {"error":"permission denied: <path>","operation":"publication"}.

Affected version

1.0.105, 1.0.106-9

Steps to reproduce the behavior

  1. Configure copilot settings (~/.copilot/settings.json)
{
  "remoteSessions": true,
  "ahpEnvironment": {
    "acceptRemoteConnections": true,
    "publishNewSessionsByDefault": true
  }
}

2. copilot --add-dir <path> (any directory, including writable and trusted ones).

Expected behavior

The session publishes successfully.

Additional context

System: linux-x64

Activity

  1. added theissue type on Nov 4, 2026
  2. added
    area:sessionsSession management, resume, history, session picker, and session state
    and removed on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sessionsSession management, resume, history, session picker, and session state

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions