// The home sidebar agent panel is not backed by a real task card.
// We mint a synthetic home agent session id so the existing task-scoped
// runtime APIs can manage its chat and terminal lifecycle without creating
// a worktree-backed task. Home sidebar sessions should use a stable synthetic
// task id so refreshes and session reloads can reconnect to the same chat.

!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="79a4702b-6b8c-5f3e-b4bb-f5194f2c5e42")}catch(e){}}();
const HOME_AGENT_SESSION_NAMESPACE = "__home_agent__";
export const HOME_AGENT_SESSION_PREFIX = `${HOME_AGENT_SESSION_NAMESPACE}:`;
export function createHomeAgentSessionId(workspaceId, agentId) {
    return `${HOME_AGENT_SESSION_PREFIX}${workspaceId}:${agentId}`;
}
export function isHomeAgentSessionId(sessionId) {
    return sessionId.startsWith(HOME_AGENT_SESSION_PREFIX);
}
export function isHomeAgentSessionIdForWorkspace(sessionId, workspaceId) {
    return sessionId.startsWith(`${HOME_AGENT_SESSION_PREFIX}${workspaceId}:`);
}
//# sourceMappingURL=home-agent-session.js.map
//# debugId=79a4702b-6b8c-5f3e-b4bb-f5194f2c5e42
