Skip to content

Commit 93a31f9

Browse files
authored
Release v0.20.0 - OpenCode V2, full-history navigation, worktrees and native browser previews (#781)
## Highlights - **CodeNomad now runs on OpenCode V2**: Projects share the native OpenCode service, so desktop windows and terminal clients can work with the same session history. Closing CodeNomad leaves the shared service running. - **Long conversations stay usable**: Transcript memory is bounded, full-history search finds content beyond the loaded messages, and the timeline lets you jump across an entire conversation with contextual previews. - **Move work between Git worktrees**: Create and select native worktrees, move a session family together, and retain the right project and branch context as you switch tasks. - **Ask a quick side question with `/btw`**: Get a separate, temporary answer without interrupting the main session. - **A more consistent workspace**: New light/dark palettes, clearer conversation surfaces, responsive session actions, persistent search/command windows, and View-menu panel toggles make the interface easier to adapt. - **Better attachments and visual feedback**: Device picking, drag-and-drop, and clipboard attachments share one workflow; project files remain available through `@` references. Images returned by MCP and other tools now render directly in chat. ## Upgrading from 0.19.x - **OpenCode V2 is required.** The technical minimum is **2.0.7**, which supplies the native step-start timestamp used by the current event reducer. **2.0.16** is the recommended and qualified runtime for this release. V1 runtimes and the former V2 beta protocol are not supported. - **Install and manage OpenCode from startup or Preferences.** CodeNomad prefers an executable on PATH and can install into a shared user npm location using bundled Node/npm. Terminal clients can use the same installation. - **Runtime installation and service restart are separate actions.** Updating the CLI does not silently restart an already-running OpenCode service. Compatible shared npm installations on OpenCode 2.0.15+ use native upgrade for version changes, including live Windows executable handling. - **Upgrade remote CodeNomad servers to 0.20.0 for the new UI.** The published UI manifest now requires server 0.20.0 instead of advertising compatibility with the V1-based 0.19.x server. - **Git enables the complete project/worktree experience.** If the backend cannot find Git, directory-scoped conversations remain available while Git-dependent functionality is unavailable. ## Sessions, history, and worktrees - Full-history search, counts, selective cleanup, and global timeline navigation work independently of the currently loaded transcript. Search includes edit diffs stored in tool metadata. - Large transcripts load bounded windows while preserving access to complete content. Timeline markers retain tool identities, and hover/focus previews show bounded Markdown excerpts. - Session search uses flat results with optional subsessions; normal browsing retains the parent/child hierarchy. Fork actions are available after both user and assistant messages. - Native worktree creation, discovery, and family moves use repository ownership checks. Removing a worktree verifies and evacuates affected sessions before deleting it. - Worktree selectors open without waiting for a fresh Git scan, and saved conversations restore before secondary Git panels and catalogs finish loading. - Stop and double Escape no longer accidentally restart a parent session. Automatic empty-session cleanup verifies native content before removing anything. - Active-session model choices survive prompt admission, catalog refreshes, and delayed responses instead of switching back unexpectedly. ## Composer, tools, and plugins - Attach local-device files with the native picker, paste, or drag-and-drop, and reference project files separately through `@`. Attachment reads follow the active draft and session rather than spilling into a newly selected conversation. - MCP and specialized tool results can display returned images without inserting image bytes into copied text, search, or speech. - Global and Project plugin activation switches are separate, making the scope of each change explicit. Plugin details are available from the name tooltip. - Native Forms support provider authentication and interactive requests. Permission rejection feedback survives refreshes, and native background Shells remain separate from interactive terminals. - Profile environment variables are refreshed before each prompt, custom command, or session shell request, including removal of previously configured values. - Browser previews and desktop automation give agents a visible inspection-and-fix workflow with session/window targeting. Automation tools are available without a Developer Mode toggle. ## Desktop continuity and interface - Electron and Tauri support multiple UUID-backed windows with independent tabs, drafts, attachments, selection, and view state over one shared backend. Window restoration uses partitioned storage rather than one monolithic snapshot. - Startup prioritizes the active project and conversation, including interrupted hydration and slow filesystem/Git discovery. Preferences retain their own geometry, zoom, and navigation. - Browser authentication can recover in place after a server restart while preserving drafts, without replaying failed actions. - Light/dark palette selections are independent of appearance mode. Settings, message cards, the composer, and panels use more consistent surfaces and controls. - Search and command windows stay open during outside interactions. The native View menu exposes panel and timeline toggles. - Thinking, tool visibility, token sections, and compact headers are clearer. System context updates are hidden by default; collapse preferences also apply to single-step reasoning. - User-supplied HTML displays as literal source rather than being interpreted as chat markup. - Turkish localization joins the existing languages, with updated coverage for V2 features. ## Reliability and distribution - Reconnection reconciles native session and pending-request state, while slow event routing no longer blocks the shared stream or other recipients. - Windows Tauri fixes address window-state capture deadlocks, input reentrancy, and native focus/menu responsiveness. Desktop startup avoids interactive shell prompts that could block launch. - Bundled Node is updated to 24.20.0 LTS, and desktop resources include the Node/npm tools needed for first-run runtime setup. - OpenCode setup keeps executable selection, runtime status, installation/update, and service actions together in Preferences. Diagnostics include clearer cross-platform server information. - Provider usage fixes include credit-based z.ai coding-plan quotas and refreshed session usage on native step/usage events. ## Thanks for contributions Thanks to [@pascalandr](https://github.com/pascalandr), [@markerikson](https://github.com/markerikson), [@fitzgpt](https://github.com/fitzgpt), [@Kondziosz](https://github.com/Kondziosz), [@shantur](https://github.com/shantur), and [@bluelovers](https://github.com/bluelovers). GitHub will append the complete merged pull request and contributor list to the generated release notes. **Full Changelog**: v0.19.0...v0.20.0
2 parents db0716e + dd7d1ee commit 93a31f9

1,401 files changed

Lines changed: 164070 additions & 39718 deletions

File tree

Some content is hidden

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

‎.github/ISSUE_TEMPLATE/bug_report.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ body:
2020
- Server CLI
2121
validations:
2222
required: true
23+
- type: input
24+
id: codenomad-version
25+
attributes:
26+
label: CodeNomad Version
27+
description: "Copy the full version from Settings > About, or run `codenomad --version` for the Server CLI. Include the dev build suffix; do not write only 'latest'. If the UI and server versions differ, include both."
28+
placeholder: "0.20.0-dev-20260919-c2b349f8"
29+
validations:
30+
required: true
31+
- type: input
32+
id: opencode-version
33+
attributes:
34+
label: OpenCode Version
35+
description: "Copy the installed OpenCode version from CodeNomad settings, or run the configured executable with `--version` (`opencode --version` or `opencode2 --version`). Include the full version, not 'latest'. If the running daemon uses a different version, include it too."
36+
placeholder: "2.0.10"
37+
validations:
38+
required: true
2339
- type: input
2440
id: os-version
2541
attributes:

‎.github/workflows/build-and-upload.yml‎

Lines changed: 9 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ on:
5252
# Permissions are intentionally omitted here so callers can choose
5353
# least-privilege (e.g. dev CI uses read-only; releases grant write).
5454

55-
env:
56-
NODE_VERSION: 20
57-
5855
jobs:
5956
build-macos:
6057
runs-on: macos-15-intel
@@ -71,7 +68,7 @@ jobs:
7168
- name: Setup Node
7269
uses: actions/setup-node@v4
7370
with:
74-
node-version: ${{ env.NODE_VERSION }}
71+
node-version-file: .node-version
7572
cache: npm
7673

7774
- name: Set workspace versions
@@ -95,9 +92,6 @@ jobs:
9592
- name: Install dependencies
9693
run: npm ci --workspaces --include=optional
9794

98-
- name: Ensure rollup native binary
99-
run: npm install @rollup/rollup-darwin-x64 --no-save
100-
10195
- name: Build macOS binaries (Electron)
10296
run: npm run build:mac --workspace @neuralnomads/codenomad-electron-app
10397

@@ -245,7 +239,7 @@ jobs:
245239
- name: Setup Node
246240
uses: actions/setup-node@v4
247241
with:
248-
node-version: ${{ env.NODE_VERSION }}
242+
node-version-file: .node-version
249243
cache: npm
250244

251245
- name: Set workspace versions
@@ -256,9 +250,6 @@ jobs:
256250
- name: Install dependencies
257251
run: npm ci --workspaces --include=optional
258252

259-
- name: Ensure rollup native binary
260-
run: npm install @rollup/rollup-win32-x64-msvc --no-save
261-
262253
- name: Build Windows binaries (Electron)
263254
run: npm run build:win --workspace @neuralnomads/codenomad-electron-app
264255

@@ -298,7 +289,7 @@ jobs:
298289
- name: Setup Node
299290
uses: actions/setup-node@v4
300291
with:
301-
node-version: ${{ env.NODE_VERSION }}
292+
node-version-file: .node-version
302293
cache: npm
303294

304295
- name: Set workspace versions
@@ -308,9 +299,6 @@ jobs:
308299
- name: Install dependencies
309300
run: npm ci --workspaces --include=optional
310301

311-
- name: Ensure rollup native binary
312-
run: npm install @rollup/rollup-linux-x64-gnu --no-save
313-
314302
- name: Build Linux binaries (Electron)
315303
run: npm run build:linux --workspace @neuralnomads/codenomad-electron-app
316304

@@ -435,7 +423,7 @@ jobs:
435423
- name: Setup Node
436424
uses: actions/setup-node@v4
437425
with:
438-
node-version: ${{ env.NODE_VERSION }}
426+
node-version-file: .node-version
439427
cache: npm
440428

441429
- name: Setup Rust (Tauri)
@@ -451,29 +439,12 @@ jobs:
451439
- name: Install dependencies
452440
run: npm ci --workspaces --include=optional
453441

454-
- name: Ensure rollup native binary
455-
run: npm install @rollup/rollup-darwin-x64 --no-save
456-
457442
- name: Prebuild (Tauri)
458443
run: npm run prebuild --workspace @codenomad/tauri-app
459444

460445
- name: Verify bundled Node resource (Tauri macOS x64)
461446
run: node scripts/verify-bundled-node.cjs packages/tauri-app/src-tauri/resources@darwin-x64
462447

463-
- name: Ensure tauri native binary
464-
working-directory: packages/tauri-app
465-
run: |
466-
set -euo pipefail
467-
for attempt in 1 2 3; do
468-
if [ "$attempt" -gt 1 ]; then
469-
echo "Retrying Tauri CLI install (attempt $attempt)..."
470-
fi
471-
npm install @tauri-apps/cli@2.9.4 @tauri-apps/cli-darwin-x64@2.9.4 --no-save --no-audit --no-fund --workspaces=false
472-
node -e "require('@tauri-apps/cli'); console.log('Tauri CLI loaded')" && exit 0
473-
done
474-
echo "Tauri CLI failed to load after retries" >&2
475-
exit 1
476-
477448
- name: Build macOS bundle (Tauri)
478449
working-directory: packages/tauri-app
479450
run: npm exec -- tauri build
@@ -525,7 +496,7 @@ jobs:
525496
- name: Setup Node
526497
uses: actions/setup-node@v4
527498
with:
528-
node-version: ${{ env.NODE_VERSION }}
499+
node-version-file: .node-version
529500
cache: npm
530501

531502
- name: Setup Rust (Tauri)
@@ -541,29 +512,12 @@ jobs:
541512
- name: Install dependencies
542513
run: npm ci --workspaces --include=optional
543514

544-
- name: Ensure rollup native binary
545-
run: npm install @rollup/rollup-darwin-arm64 --no-save
546-
547515
- name: Prebuild (Tauri)
548516
run: npm run prebuild --workspace @codenomad/tauri-app
549517

550518
- name: Verify bundled Node resource (Tauri macOS arm64)
551519
run: node scripts/verify-bundled-node.cjs packages/tauri-app/src-tauri/resources@darwin-arm64
552520

553-
- name: Ensure tauri native binary
554-
working-directory: packages/tauri-app
555-
run: |
556-
set -euo pipefail
557-
for attempt in 1 2 3; do
558-
if [ "$attempt" -gt 1 ]; then
559-
echo "Retrying Tauri CLI install (attempt $attempt)..."
560-
fi
561-
npm install @tauri-apps/cli@2.9.4 @tauri-apps/cli-darwin-arm64@2.9.4 --no-save --no-audit --no-fund --workspaces=false
562-
node -e "require('@tauri-apps/cli'); console.log('Tauri CLI loaded')" && exit 0
563-
done
564-
echo "Tauri CLI failed to load after retries" >&2
565-
exit 1
566-
567521
- name: Build macOS bundle (Tauri, arm64)
568522
working-directory: packages/tauri-app
569523
run: npm exec -- tauri build
@@ -615,7 +569,7 @@ jobs:
615569
- name: Setup Node
616570
uses: actions/setup-node@v4
617571
with:
618-
node-version: ${{ env.NODE_VERSION }}
572+
node-version-file: .node-version
619573
cache: npm
620574

621575
- name: Setup Rust (Tauri)
@@ -632,30 +586,12 @@ jobs:
632586
- name: Install dependencies
633587
run: npm ci --workspaces --include=optional
634588

635-
- name: Ensure rollup native binary
636-
run: npm install @rollup/rollup-win32-x64-msvc --no-save
637-
638589
- name: Prebuild (Tauri)
639590
run: npm run prebuild --workspace @codenomad/tauri-app
640591

641592
- name: Verify bundled Node resource (Tauri Windows)
642593
run: node scripts/verify-bundled-node.cjs packages/tauri-app/src-tauri/resources@win32-x64
643594

644-
- name: Ensure tauri native binary
645-
shell: bash
646-
working-directory: packages/tauri-app
647-
run: |
648-
set -euo pipefail
649-
for attempt in 1 2 3; do
650-
if [ "$attempt" -gt 1 ]; then
651-
echo "Retrying Tauri CLI install (attempt $attempt)..."
652-
fi
653-
npm install @tauri-apps/cli@2.9.4 @tauri-apps/cli-win32-x64-msvc@2.9.4 --no-save --no-audit --no-fund --workspaces=false
654-
node -e "require('@tauri-apps/cli'); console.log('Tauri CLI loaded')" && exit 0
655-
done
656-
echo "Tauri CLI failed to load after retries" >&2
657-
exit 1
658-
659595
- name: Build Windows bundle (Tauri)
660596
shell: bash
661597
working-directory: packages/tauri-app
@@ -710,7 +646,7 @@ jobs:
710646
- name: Setup Node
711647
uses: actions/setup-node@v4
712648
with:
713-
node-version: ${{ env.NODE_VERSION }}
649+
node-version-file: .node-version
714650
cache: npm
715651

716652
- name: Setup Rust (Tauri)
@@ -739,29 +675,12 @@ jobs:
739675
- name: Install dependencies
740676
run: npm ci --workspaces --include=optional
741677

742-
- name: Ensure rollup native binary
743-
run: npm install @rollup/rollup-linux-x64-gnu --no-save
744-
745678
- name: Prebuild (Tauri)
746679
run: npm run prebuild --workspace @codenomad/tauri-app
747680

748681
- name: Verify bundled Node resource (Tauri Linux)
749682
run: node scripts/verify-bundled-node.cjs packages/tauri-app/src-tauri/resources@linux-x64
750683

751-
- name: Ensure tauri native binary
752-
working-directory: packages/tauri-app
753-
run: |
754-
set -euo pipefail
755-
for attempt in 1 2 3; do
756-
if [ "$attempt" -gt 1 ]; then
757-
echo "Retrying Tauri CLI install (attempt $attempt)..."
758-
fi
759-
npm install @tauri-apps/cli@2.9.4 @tauri-apps/cli-linux-x64-gnu@2.9.4 --no-save --no-audit --no-fund --workspaces=false
760-
node -e "require('@tauri-apps/cli'); console.log('Tauri CLI loaded')" && exit 0
761-
done
762-
echo "Tauri CLI failed to load after retries" >&2
763-
exit 1
764-
765684
- name: Build Debian package (Tauri)
766685
working-directory: packages/tauri-app
767686
run: npm exec -- tauri build --bundles deb
@@ -914,7 +833,7 @@ jobs:
914833
- name: Setup Node
915834
uses: actions/setup-node@v4
916835
with:
917-
node-version: ${{ env.NODE_VERSION }}
836+
node-version-file: .node-version
918837
cache: npm
919838

920839
- name: Setup Rust (Tauri)
@@ -953,11 +872,9 @@ jobs:
953872
- name: Install dependencies
954873
run: npm ci --workspaces --include=optional
955874

956-
- name: Ensure rollup native binary
957-
run: npm install @rollup/rollup-linux-arm64-gnu --no-save
958-
959875
- name: Build Linux bundle (Tauri arm64)
960876
env:
877+
CODENOMAD_NODE_TARGET: linux-arm64
961878
TAURI_BUILD_TARGET: aarch64-unknown-linux-gnu
962879
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
963880
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc

‎.github/workflows/comment-pr-artifacts.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
shell: bash
3333
run: |
3434
set -euo pipefail
35-
if [ "$BASE_REF" = "dev" ]; then
35+
if [ "$BASE_REF" = "dev" ] || [ "$BASE_REF" = "DEV-v2" ]; then
3636
echo "allowed=true" >> "$GITHUB_OUTPUT"
3737
exit 0
3838
fi

‎.github/workflows/dev-release.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
uses: ./.github/workflows/reusable-release.yml
7373
with:
7474
ref: ${{ needs.gate.outputs.dev_sha }}
75+
base_version: 0.20.0
7576
version_suffix: ${{ needs.gate.outputs.version_suffix }}
7677
npm_package_name: "@neuralnomads/codenomad-dev"
7778
dist_tag: latest

‎.github/workflows/manual-npm-publish.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
publish:
4747
runs-on: ubuntu-latest
4848
env:
49-
NODE_VERSION: 22
5049
PUBLISH_NPM_VERSION: 11.5.1
5150
steps:
5251
- name: Checkout
@@ -57,7 +56,7 @@ jobs:
5756
- name: Setup Node
5857
uses: actions/setup-node@v4
5958
with:
60-
node-version: ${{ env.NODE_VERSION }}
59+
node-version-file: .node-version
6160
registry-url: https://registry.npmjs.org
6261

6362
- name: Prepare pinned npm CLI

0 commit comments

Comments
 (0)