Skip to content

Commit dc61e3e

Browse files
v0.7.4
# v0.7.4 — Custom Endpoints & Session Branching Overhaul --- ## Features - **Custom endpoint support** — connect any OpenAI-compatible provider via Pi SDK's `registerProvider`, with protocol selector, base URL input, and model registration. Fixes [#329](#329) (479d6d25) ## Improvements - **Custom endpoint UX** — protocol selector now appears before the base URL input, and edit-state persistence works reliably across setup routing (aac754d7, d94d36bd, 40b53170) - **CustomEndpointApi cleanup** — deduplicated type definition, extracted `InitMessage`, and fixed model registration replace bug (8f770f62) ## Bug Fixes - **Session branching overhaul** — completely reworked the branch/fork flow to eliminate preflight failures, CWD mismatches, and stuck sessions. Branches now fork on first user message instead of during preflight, conversation is properly trimmed at the branch point, and `spawn_session` names appear correctly in the sidebar. Fixes [#392](#392) (a9358817, 1cb1d11c, d337e288, e54f58f0, 0d40bb7e, 7bd83366, 36f46f88, e8db3e2a, and 10 more commits) - **Branch cutoff reliability** — Pi and Claude branch cutoffs now use sidecar turn anchors and lineage guards, with proper fallback when UUIDs are missing (ebf0fba7, 20f1dc35, 82b19359, 4bfac3a0) - **Windows: duplicate messages on branch** — Windows `fs.watch()` fires aggressively for atomic writes, causing the ConfigWatcher to re-broadcast session metadata and duplicate messages. Fixed with ID-based dedup in `appendMessage()`, self-triggered event suppression via signature comparison, and increased debounce to 300ms on Windows (65c959f8) - **Windows: empty branch messages** — branch messages were saved with hardcoded source session paths instead of portable `{{SESSION_PATH}}` tokens, causing path resolution failures on Windows. Fixed by re-tokenizing paths from source → branch directory during message copy (1ab2c9b8) - **Model switching mid-session** — `ClaudeAgent.setModel` now correctly calls `super.setModel` to update the internal model reference, fixing cases where model changes didn't take effect. Partially addresses [#390](#390) (abd1fa4a) - **JSON file link crash** — clicking JSON file links for non-existent files no longer crashes the app (bfcb875d) - **Empty text block cache_control** — stripped `cache_control` from empty text blocks in Anthropic API requests, preventing validation errors (4ad37ff3) - **Automation send-timeout** — increased send-timeout for the daily discussion points workflow to prevent premature timeouts (669c83cb) ---
1 parent 22acfc0 commit dc61e3e

File tree

49 files changed

+2004
-1320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2004
-1320
lines changed

apps/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@craft-agent/cli",
3-
"version": "0.7.3",
3+
"version": "0.7.4",
44
"description": "Terminal client for Craft Agent server",
55
"type": "module",
66
"main": "src/index.ts",

apps/cli/src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,14 +671,18 @@ async function cmdValidate(args: CliArgs): Promise<void> {
671671
let server: LocalServer | undefined
672672
let client: CliRpcClient
673673

674+
// Use a generous timeout for validation steps — source creation and MCP
675+
// server startup can be slow on Windows.
676+
const validateArgs = { ...args, timeout: Math.max(args.timeout, 30_000) }
677+
674678
if (args.url) {
675679
client = new CliRpcClient(args.url, {
676680
token: args.token || undefined,
677-
requestTimeout: args.timeout,
678-
connectTimeout: args.timeout,
681+
requestTimeout: validateArgs.timeout,
682+
connectTimeout: validateArgs.timeout,
679683
})
680684
} else {
681-
server = await spawnLocalServer(args, { quiet: !args.verbose })
685+
server = await spawnLocalServer(validateArgs, { quiet: !args.verbose })
682686
client = server.client
683687
}
684688

apps/electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@craft-agent/electron",
3-
"version": "0.7.3",
3+
"version": "0.7.4",
44
"description": "Electron desktop app for Craft Agents",
55
"main": "dist/main.cjs",
66
"private": true,
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# v0.7.4 — Custom Endpoints & Session Branching Overhaul
2+
3+
---
4+
5+
## Features
6+
7+
- **Custom endpoint support** — connect any OpenAI-compatible provider via Pi SDK's `registerProvider`, with protocol selector, base URL input, and model registration. Fixes [#329](https://github.com/lukilabs/craft-agents-oss/issues/329) (479d6d25)
8+
9+
## Improvements
10+
11+
- **Custom endpoint UX** — protocol selector now appears before the base URL input, and edit-state persistence works reliably across setup routing (aac754d7, d94d36bd, 40b53170)
12+
- **CustomEndpointApi cleanup** — deduplicated type definition, extracted `InitMessage`, and fixed model registration replace bug (8f770f62)
13+
14+
## Bug Fixes
15+
16+
- **Session branching overhaul** — completely reworked the branch/fork flow to eliminate preflight failures, CWD mismatches, and stuck sessions. Branches now fork on first user message instead of during preflight, conversation is properly trimmed at the branch point, and `spawn_session` names appear correctly in the sidebar. Fixes [#392](https://github.com/lukilabs/craft-agents-oss/issues/392) (a9358817, 1cb1d11c, d337e288, e54f58f0, 0d40bb7e, 7bd83366, 36f46f88, e8db3e2a, and 10 more commits)
17+
- **Branch cutoff reliability** — Pi and Claude branch cutoffs now use sidecar turn anchors and lineage guards, with proper fallback when UUIDs are missing (ebf0fba7, 20f1dc35, 82b19359, 4bfac3a0)
18+
- **Windows: duplicate messages on branch** — Windows `fs.watch()` fires aggressively for atomic writes, causing the ConfigWatcher to re-broadcast session metadata and duplicate messages. Fixed with ID-based dedup in `appendMessage()`, self-triggered event suppression via signature comparison, and increased debounce to 300ms on Windows (65c959f8)
19+
- **Windows: empty branch messages** — branch messages were saved with hardcoded source session paths instead of portable `{{SESSION_PATH}}` tokens, causing path resolution failures on Windows. Fixed by re-tokenizing paths from source → branch directory during message copy (1ab2c9b8)
20+
- **Model switching mid-session**`ClaudeAgent.setModel` now correctly calls `super.setModel` to update the internal model reference, fixing cases where model changes didn't take effect. Partially addresses [#390](https://github.com/lukilabs/craft-agents-oss/issues/390) (abd1fa4a)
21+
- **JSON file link crash** — clicking JSON file links for non-existent files no longer crashes the app (bfcb875d)
22+
- **Empty text block cache_control** — stripped `cache_control` from empty text blocks in Anthropic API requests, preventing validation errors (4ad37ff3)
23+
- **Automation send-timeout** — increased send-timeout for the daily discussion points workflow to prevent premature timeouts (669c83cb)
24+
25+
---

0 commit comments

Comments
 (0)