Skip to content

Merge upstream join3r/claude-project (2026-09-27) - #12

Merged
TeleporterGuy merged 12 commits into
masterfrom
merge-upstream-2026-09
Sep 28, 2026
Merged

TeleporterGuy merged 12 commits into
masterfrom
merge-upstream-2026-09

Conversation

@TeleporterGuy

Copy link
Copy Markdown
Owner

Summary

Merges the 9 new commits from join3r/claude-project master into the fork, so a later PR back to upstream sits on top of its current master.

From upstream: IPC split into src/main/ipc/* with input validation and a path allow-list, useAppState / Sidebar split into domain modules, single-instance lock (per config dir — dev and packaged still run side by side), CSP + local Monaco, atomic projects.json writes with backup recovery, ESLint + pre-commit hook, Claude chat /btw side questions and task indicator.

Fork changes re-homed onto the new structure:

  • Notebook kernel IPC + conda-list-envs → new src/main/ipc/notebooks.ts (validated like the other modules); kernel lifecycle in app-runtime, kernel shutdown on tab kill via PtySessions.
  • Conda activation for local PTYs → PtySessions.spawn.
  • safeWebContentsSend for main → renderer broadcasts.
  • useAppState fork bits → useProjects (conda fields), useZoom (zoomEditor), useTabs (.ipynb opens as a notebook tab).
  • CI: upstream's 3-OS matrix (typecheck, lint, test, build) plus the fork's notebook-live-windows job.

Checked: every preload IPC channel has a main handler; the CSP still allows notebook data: PNG outputs; the path allow-list uses platform paths (Windows case-insensitive); the config sanitizer keeps all fork keys; project fields pass through.

Test plan

  • npm run typecheck, npm run lint (0 errors), npm test (1211 passed), npm run build
  • CI: test (ubuntu / macos / windows), notebook-live-windows
  • Windows hands-on: Git Bash terminal + Pi, notebooks (kernel start / run / conda picker), file tree + editor save, Open in VS Code, Ctrl+L links, Claude chat
  • Second instance on the same config dir focuses the first; npm run dev alongside the packaged app still works

🤖 Generated with Claude Code

join3r and others added 12 commits September 26, 2026 10:33
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…json

A corrupt projects.json used to load as empty data and get overwritten on
the next save. It is now moved aside and restored from the newest valid
backup. Startup backups skip unparseable and duplicate snapshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…naco

- Per-config-dir lock file so dev and packaged instances still coexist;
  a second launch focuses the running window.
- Main windows deny window.open and block navigation off the app URL.
- Content-Security-Policy (widened for Vite HMR in dev only).
- Monaco loads from the bundled monaco-editor package instead of jsDelivr.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Handlers move to src/main/ipc/* and PTY logic to pty-sessions.ts. Every
handler validates its arguments and sender frame; save-config drops
unknown or mistyped keys; file-browser/git paths must resolve (via
realpath) inside a known project or task worktree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- eslint.config.mjs + npm run lint, with small lint fixes.
- build runs typecheck first; typecheck now covers tests/.
- vitest.config.ts excludes .claude/, out/, dist/.
- .githooks/pre-commit (lint staged + typecheck), set via prepare.
- GitHub Actions matrix on macOS, Linux, Windows.
- project-stats test no longer depends on the local timezone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fold the SDK's task_* edges and background_tasks_changed into per-tab task
state, and show running (and recently finished) tasks above the composer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CLI leaves the Artifact tool off in SDK sessions unless
CLAUDE_CODE_ARTIFACT is set, so chat tabs set it (an explicit 0 or
enableArtifact: false still wins). /btw isn't listed to SDK clients; the
chat tab now runs it through the SDK's side-question request and shows
the answer above the composer, outside the conversation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sion fails

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in upstream's IPC split with input validation and path allow-list,
useAppState/Sidebar domain modules, single-instance lock (per config dir,
so dev and packaged still run side by side), CSP + local Monaco, atomic
projects.json writes, ESLint + pre-commit hook, and Claude chat /btw side
questions and task indicator.

Fork changes re-homed onto the new structure:
- Notebook kernel IPC and conda-list-envs move to src/main/ipc/notebooks.ts
  (validated like upstream's other modules); kernel manager lifecycle and
  kernel shutdown on tab kill live in app-runtime / PtySessions.
- Conda activation for local PTYs moves into PtySessions.spawn.
- safeWebContentsSend for main -> renderer broadcasts.
- useAppState: conda fields on ProjectUpdate (useProjects), zoomEditor
  (useZoom), .ipynb opens as a notebook tab (useTabs).
- EditorTab/Composer/ClaudeChatTab keep agent-link wiring alongside
  upstream's changes.
- CI: upstream's 3-OS matrix (typecheck, lint, test, build) plus the
  fork's notebook-live-windows job (conda + live kernel smoke).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge's local npm (11.5.1) dropped optional Windows-only entries
(postject, @electron/windows-sign), so CI's npm ci refused the lockfile.
Dependencies are identical to upstream's; only the root version differs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows runners os.tmpdir() is an 8.3 short path (RUNNER~1). The code
resolves roots with fs.promises.realpath (native, expands it) while the
test used fs.realpathSync (JS, does not), so 4 tests failed on Windows,
upstream's CI included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TeleporterGuy
TeleporterGuy merged commit 4aa9b55 into master Sep 28, 2026
4 checks passed
@TeleporterGuy
TeleporterGuy deleted the merge-upstream-2026-09 branch October 1, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants