diff --git a/CHANGELOG.md b/CHANGELOG.md index 59ffa46..bfc4be5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.9.1] - 2026-07-11 + +### Fixed + +- 🏠 **Home chats work like workspace chats.** Home keeps chats, terminals, and browser pages alive while you switch tabs, streams replies as they arrive, and correctly loads global skills. + ## [0.9.0] - 2026-07-11 ### Added diff --git a/cptr/frontend/src/routes/+layout.svelte b/cptr/frontend/src/routes/+layout.svelte index a48b808..4700a97 100644 --- a/cptr/frontend/src/routes/+layout.svelte +++ b/cptr/frontend/src/routes/+layout.svelte @@ -351,16 +351,23 @@ }); } - // Connect system events when workspace is active + // Chat events belong to the authenticated user, not a workspace. + $effect(() => { + if (authState === 'authenticated') { + socketStore.connect(); + bindGlobalChatListener(); + } else { + socketStore.disconnect(); + } + }); + + // Filesystem events remain workspace-scoped. $effect(() => { const ws = $currentWorkspace; if (ws) { systemEvents.connect(ws.fileBrowserCwd || ws.path); - socketStore.connect(); - bindGlobalChatListener(); } else { systemEvents.disconnect(); - socketStore.disconnect(); } }); diff --git a/cptr/utils/skills.py b/cptr/utils/skills.py index 790b060..53d4b7f 100644 --- a/cptr/utils/skills.py +++ b/cptr/utils/skills.py @@ -423,7 +423,7 @@ def discover_skills(workspace: str) -> list[SkillMeta]: ws = Path(workspace) # 1. Workspace-level skills (project-specific, git-trackable) - if ws.is_dir(): + if workspace and ws.is_dir(): for rel_dir in WORKSPACE_SKILL_DIRS: skills_dir = ws / rel_dir for skill in _scan_skills_dir(skills_dir, source="workspace", workspace=workspace): diff --git a/pyproject.toml b/pyproject.toml index edfb6d1..fbea2a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cptr" -version = "0.9.0" +version = "0.9.1" description = "Your computer, from anywhere. Code, manage, and control your machine from the web." license = {file = "LICENSE"} readme = "README.md" diff --git a/uv.lock b/uv.lock index c878d04..95f6185 100644 --- a/uv.lock +++ b/uv.lock @@ -284,7 +284,7 @@ wheels = [ [[package]] name = "cptr" -version = "0.9.0" +version = "0.9.1" source = { editable = "." } dependencies = [ { name = "aiosqlite" },