Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ai/contexts/build-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ actual postinstall is `scripts/postinstall.js`; `scripts/**` also covers the
entitlements and the DMG background. The builder configuration is inline in
`package.json`; there is no separate electron-builder config. Dependencies are
covered by the lockfile. The filter is packaging only: application source
(`*.js`, `src/**`, `workers/**`, `public/**`, `harnesses/**`) and `CHANGELOG.md`
(`*.js`, `src/**`, `workers/**`, `public/**`) and `CHANGELOG.md`
are deliberately absent, so a code PR builds no installers. A packaging break
caused by source surfaces at the tag, where strict publish blocks it (accepted
risk, maintainer decision).
Expand Down
25 changes: 13 additions & 12 deletions .ai/contexts/cli-harnesses.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
covers:
- "main.js"
- "harnesses/claude.js"
- "harnesses/codex.js"
- "harnesses/contract.js"
- "harnesses/index.js"
- "src/main/harnesses/claude.js"
- "src/main/harnesses/codex.js"
- "src/main/harnesses/contract.js"
- "src/main/harnesses/index.js"
- "jsonl-scan.js"
- "read-session-file.js"
- "scripts/launcher-env.js"
Expand All @@ -23,7 +23,7 @@ be tested with plain `require` without executing either launcher.

Both isolated modes set `CODEX_HOME` to `<temporary HOME>/.codex` and drop
inherited spellings case-insensitively. The default test-pr mode keeps the
user's Codex home. The audit of `harnesses/` and `src/` found no further
user's Codex home. The audit of `src/` (`src/main/harnesses/` included) found no further
harness-state override: `CODEX_HOME` also controls Codex usage credentials and
full-read roots; `SWITCHBOARD_DATA_DIR` and `SWITCHBOARD_TRIGGERS_DIR` already
point inside the disposable home. Claude paths derive from that home, and
Expand Down Expand Up @@ -127,7 +127,8 @@ launch tags, fork ownership or resume UUIDs. See session-cache.md for the
day selector, metadata-only name repair and root relocation contracts.

Issue #820 adds `harnesses/index.js`, `harnesses/claude.js` and
`harnesses/contract.js` at the upstream paths, before ADR 0005's context move.
`harnesses/contract.js` at the upstream paths; ADR 0005 step 10 (#1357) moves
them to `src/main/harnesses/`.
The design follows Ali Basiri's upstream commits `ac72985f` and `f5e38a75`;
the fork's transcript and lifecycle implementations remain in place.

Expand Down Expand Up @@ -169,7 +170,7 @@ harness" below.
`assertHarness()` validates metadata, methods, boolean capability flags and
the optional usage provider. Features use `capabilities` (`subagents`,
`continuations`, `liveElsewhere`, `bgJobs`, `ideBridge`, `sandbox`, `schedule`,
`remote`, `deleteTranscript`; `CAPABILITIES` in `harnesses/contract.js`), rather than runtime-name comparisons. These flags describe the CLI
`remote`, `deleteTranscript`; `CAPABILITIES` in `src/main/harnesses/contract.js`), rather than runtime-name comparisons. These flags describe the CLI
integration; existing platform, host and settings checks still decide whether
a feature is usable for a particular launch.

Expand Down Expand Up @@ -210,8 +211,8 @@ value is parsed but not offered. There is no MCP configuration, browser process
or browser capability contract. Main calls the builder synchronously at the
existing launch extraction anchors.

The registry (`harnesses/index.js`) holds the Claude and Codex adapters.
`harnesses/**` ships in `build.files`, receives Node ESLint rules and is
The registry (`src/main/harnesses/index.js`) holds the Claude and Codex adapters.
`src/main/harnesses/` ships through `build.files` `src/**/*`, receives Node ESLint rules and is
included in the module-layout resolver. No new top-level JS file is added,
so `test/fixtures/root-app-modules.json` remains unchanged.

Expand All @@ -238,7 +239,7 @@ writable-store reconciliation, not the worker transport or Electron's binding.

## Codex adapter (#821)

`harnesses/codex.js` is a port of Ali Basiri's upstream adapter (doctly/switchboard
`src/main/harnesses/codex.js` is a port of Ali Basiri's upstream adapter (doctly/switchboard
`896783ba`, `e71e6f0c`, the title index of `fe7fba01`, the viewer half of
`966715db`, the argv builder of the final `upstream/main:harnesses/codex.js`),
re-shaped for the fork's contract. Measured against 237 rollouts on
Expand Down Expand Up @@ -296,7 +297,7 @@ re-shaped for the fork's contract. Measured against 237 rollouts on
picked up by the next reconcile pass, not by the watcher (the index sits
outside the sessions root).
- Capabilities: all false, including `deleteTranscript` (Claude true)
(`harnesses/codex.js`, `capabilities`). Its activity methods are routed into
(`src/main/harnesses/codex.js`, `capabilities`). Its activity methods are routed into
main as described in "Busy and attention per harness" below.

## Launching through the harness (#822)
Expand Down Expand Up @@ -481,7 +482,7 @@ for the fetch, backoff and footer grouping (#1209).
codex's own config", and `showCodexUsage: false`. `resolveDefaultSessionOptions` copies the non-empty
Codex keys into the launch options; the Codex builder validates them and the
Claude builder ignores them.
- Guard: `assertHarnessSettings(fields)` (`harnesses/index.js`) refuses a
- Guard: `assertHarnessSettings(fields)` (`src/main/harnesses/index.js`) refuses a
`disabledHarnesses` that is not a string list or that leaves no registered
CLI on (`code: 'HARNESS_GUARD'`). It runs inside the writer, on
`patchGlobal` (`session-index-commands.js`) and on a raw
Expand Down
2 changes: 1 addition & 1 deletion .ai/contexts/managed-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ is what users see of #812. `BROWSER_MODES` lists `off`, `claude-in-chrome` and
`claude-in-chrome`, an invalid value to `off` (main logs the warning once per
scope and value, `normalizeStoredBrowserSettings`), and drops `chrome`. The
Claude adapter adds `--chrome` only for `claude-in-chrome`
(`harnesses/claude.js`). `managed` is filtered out of the Settings, New Session
(`src/main/harnesses/claude.js`). `managed` is filtered out of the Settings, New Session
and Resume pickers, and a stored `managed` shows and saves as Off: nothing
launches the managed browser from the UI.

Expand Down
4 changes: 2 additions & 2 deletions .ai/contexts/session-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ Issue #1255.
| `src/main/session-index/session-refs.js` | ~95 | Search body refs (`collectRefs`, `mergeSearchBodyRefs`; see "Search" and ADR 0006). |
| `session-continuations.js` | ~260 | Continuation ids, stamps and the continuation index (see "Continuation rows (#564)" and "Continuation index (#518B)"). |
| `subagent-attribution.js` | ~45 | Which transcript path is a root, subagent or workflow agent (see [subagent-observability](subagent-observability.md)). |
| `harnesses/` (`index.js`, `claude.js`, `codex.js`, `contract.js`) | | Per-CLI adapters: folder ownership, transcript paths and Codex rollout reading (see [cli-harnesses](cli-harnesses.md)). |
| `src/main/harnesses/` (`index.js`, `claude.js`, `codex.js`, `contract.js`) | | Per-CLI adapters: folder ownership, transcript paths and Codex rollout reading (see [cli-harnesses](cli-harnesses.md)). |

## Public surface

Expand Down Expand Up @@ -4267,7 +4267,7 @@ disposable HOME/USERPROFILE with synthetic `.codex/sessions` rollouts and an
unset CODEX_HOME, never the developer's history. No production default changes.

A folder key with a harness prefix (`codex/2026/08/26`) belongs to a CLI whose
store is not `~/.claude/projects`; `harnessForFolder` (`harnesses/index.js`)
store is not `~/.claude/projects`; `harnessForFolder` (`src/main/harnesses/index.js`)
picks the adapter. `refreshFolder` dispatches such a key to
`refreshHarnessFolder(harness, folder)` before any continuation preparation:
it resolves the directory with `harness.folderPath` (null for a malformed key,
Expand Down
2 changes: 1 addition & 1 deletion .ai/contexts/session-index-writer.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ session-index-writer-client.js follows the house Worker factory/event pattern.
workers/session-index-writer.js opens the writable store inside its thread.
The worker path uses path.join(__dirname,'workers',...). package.json `build.files`
ships root *.js, `src/**/*` (the main-side `src/main/projects/*` writer modules),
`harnesses/**` and workers/**/* and unpacks better-sqlite3 and node-pty through
(the harness adapters under `src/main/harnesses/` included) and workers/**/* and unpacks better-sqlite3 and node-pty through
the normal dependency packaging. No native rebuild is introduced.

The optional `onSessionsChanged(ids, change)` observer runs after the write ACK
Expand Down
2 changes: 1 addition & 1 deletion .ai/contexts/trigger-watcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ The canonical name (`new.name.trim()`) travels `operation.name` → the broker's
record → `permitView` (new mode only, frozen) → `open-terminal`, which reads it
from the consumed permit alone and hands it to `buildLaunchArgs({ name })`.
Renderer options, defaults and placeholder labels cannot supply it. Only
`harnesses/claude.js` turns it into `--name <name>`, on a fresh launch; resume
`src/main/harnesses/claude.js` turns it into `--name <name>`, on a fresh launch; resume
and fork ignore it. The argv element is passed whole through the shell encoders
(`quoteArgForShell`: POSIX single quotes, fish single quotes with doubled
backslashes, nushell double-quoted strings with `\\` and `\"` escapes, PowerShell
Expand Down
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ a0cf5bed6178eb49215bfa90d15734e419f6b079
37bda70a0b6b2dc10f0f3ec922b0fef85832e2d4
e6f6a87ab23252c05cde25b05ab70dd072f69264
890702a918826844e54c56172e7b7091d38f2f79
b2b2b8a2f4c1e1383c7c88b8284cbb3d6ed8944b
4 changes: 2 additions & 2 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The `changelog` job of `.github/workflows/test.yml` runs on every pull request.
It is a required check of the `main-protection` and `release-protection`
rulesets, so a PR to `main` or `release/*` that it fails cannot be merged. It fails when the PR changes app code and not
`CHANGELOG.md`. App code is what electron-builder ships: the `*.js` files at
the root (`eslint.config.js` excepted), `public/`, `workers/`, `src/`, `harnesses/` and
the root (`eslint.config.js` excepted), `public/`, `workers/`, `src/` and
`scripts/claude-sandbox.sh`.

The PR is judged on its whole diff: `git diff <base>...<head>`, from the PR's
Expand Down Expand Up @@ -138,7 +138,7 @@ for the summary, changelog entry or `no-changelog` waiver, and test results.
The PR-only `docs` job in `.github/workflows/test.yml` invokes
`scripts/check-docs.js`. It shares the changelog check's app path classification:
root JavaScript except `eslint.config.js`, `src/`, `public/`, `workers/`,
`harnesses/`, and `scripts/claude-sandbox.sh`.
and `scripts/claude-sandbox.sh`.

Each eligible agent context and user page documenting code declares YAML front
matter at the start of the file. For example:
Expand Down
3 changes: 1 addition & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,8 @@ src/main/triggers/ The file-based trigger API and delivery context
src/main/remote/ Remote inventory, mirror, watch, attach and stop
src/main/integrations/mcp/ The IDE emulation MCP server
src/main/app/ Window, menu, zoom, shutdown and changelog
src/main/ Other contexts: bg-agents, browser, changes, cli, files,
src/main/ Other contexts: bg-agents, browser, changes, cli, files, harnesses,
projects, session-index, shared, terminals, usage, viewer
harnesses/ Claude and Codex CLI adapters
remote-activity.js Remote activity state (still at root)
e2e/ Playwright journeys
resources/ Packaged runtime resources
Expand Down
2 changes: 1 addition & 1 deletion docs/launching-sessions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
covers:
- "harnesses/*.js"
- "src/main/harnesses/*.js"
- "public/dialogs.js"
- "src/main/terminals/plain-terminal-shell.js"
- "src/main/terminals/shell-profiles.js"
Expand Down
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,6 @@ module.exports = [
{
files: [
'*.js',
'harnesses/**/*.js',
'workers/**/*.js',
'scripts/**/*.{js,cjs}',
'src/main/**/*.js',
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
}

// Shell profiles → shell-profiles.js
const { discoverShellProfiles, getShellProfiles, resolveShell, isWindows, isWslShell, windowsToWslPath, shellArgs, quoteArgvForShell, claudeCommand, headlessClaudeLaunch, customArgsForLaunch } = require('./src/main/terminals/shell-profiles');

Check warning on line 89 in main.js

View workflow job for this annotation

GitHub Actions / lint

'discoverShellProfiles' is assigned a value but never used. Allowed unused vars must match /^_/u
const { startScheduler, scheduleLaunchRefusal, resolveScheduleSandbox, initialScheduleProjects, scanSchedules, setScheduleEnabled, listScheduleFiles } = require('./src/main/schedules/schedule-runner');
const { createScheduleHistoryImport } = require('./src/main/schedules/schedule-history-import');
const { buildScheduleList } = require('./src/main/schedules/schedule-list');
Expand Down Expand Up @@ -640,7 +640,7 @@
// --- Session cache helpers ---

const { resolveSessionRealCwd, sessionTranscriptExists, isGitRepo } = require('./derive-project-path');
const { getHarness, prefixedHarnesses, allHarnesses, DEFAULT_HARNESS } = require('./harnesses');
const { getHarness, prefixedHarnesses, allHarnesses, DEFAULT_HARNESS } = require('./src/main/harnesses');
const { resolveRowDeletionTargets } = require('./delete-session-target');

// Session cache → session-cache.js
Expand All @@ -656,8 +656,8 @@
getMainWindow: () => mainWindow,
log,
});
const { readSessionFile, readFolderFromFilesystem,

Check warning on line 659 in main.js

View workflow job for this annotation

GitHub Actions / lint

'readFolderFromFilesystem' is assigned a value but never used. Allowed unused vars must match /^_/u

Check warning on line 659 in main.js

View workflow job for this annotation

GitHub Actions / lint

'readSessionFile' is assigned a value but never used. Allowed unused vars must match /^_/u
backfillEntrypoints, backfillCustomTitles, revealIfSdkSession, notifyRendererProjectsChanged, sendStatus, populateCacheViaWorker,

Check warning on line 660 in main.js

View workflow job for this annotation

GitHub Actions / lint

'sendStatus' is assigned a value but never used. Allowed unused vars must match /^_/u
scanFoldersViaWorker, setRemoteRoots, resolveFolderDir, isIndexingFinished, coldScanInFlight } = sessionCache;
// see .ai/contexts/session-cache.md ("Projects query worker")
const { createProjectsWorkerClient } = require('./projects-worker-client');
Expand Down Expand Up @@ -3466,7 +3466,7 @@
// WSL profiles only work for plain terminals — Claude CLI sessions need the
// Windows shell because session data lives on the Windows filesystem.
const requestedProfile = resolveShell(effectiveProfileId);
const useWslProfile = isWslShell(requestedProfile.path) && isPlainTerminal;

Check warning on line 3469 in main.js

View workflow job for this annotation

GitHub Actions / lint

'useWslProfile' is assigned a value but never used. Allowed unused vars must match /^_/u
const shellProfile = (isWslShell(requestedProfile.path) && !isPlainTerminal)
? resolveShell('auto')
: requestedProfile;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"files": [
"src/**/*",
"*.js",
"harnesses/**",
"CHANGELOG.md",
"workers/**/*",
"public/**/*",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { execFileSync } = require('child_process');
const WAIVER_LABEL = 'no-changelog';

function isAppPath(file) {
if (file.startsWith('public/') || file.startsWith('workers/') || file.startsWith('src/') || file.startsWith('harnesses/')) return true;
if (file.startsWith('public/') || file.startsWith('workers/') || file.startsWith('src/')) return true;
if (file === 'scripts/claude-sandbox.sh') return true;
return /^[^/]+\.js$/.test(file) && file !== 'eslint.config.js';
}
Expand Down
1 change: 0 additions & 1 deletion scripts/doc-refs-allow.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
{ "doc": "docs/decisions/0004-session-index-study.md", "ref": "line:*", "reason": "study line numbers are measurements at its stated baseline commits; db.js has since moved" },
{ "doc": "docs/decisions/0004-session-index-study.md", "ref": "probe-session-index.cjs", "reason": "throwaway probe of the study, never committed" },
{ "doc": "docs/decisions/0004-session-index-study.md", "ref": "symbol:*", "reason": "symbols are cited at their baseline-commit location (db.js:<line>); db.js has since moved" },
{ "doc": "docs/decisions/0005-main-process-context-layout.md", "ref": "harnesses/claude/", "reason": "target layout this ADR plans, not yet reached" },
{ "doc": "docs/decisions/0005-main-process-context-layout.md", "ref": "src/main/main.js", "reason": "target layout this ADR plans, not yet reached" },
{ "doc": "docs/decisions/0005-main-process-context-layout.md", "ref": "src/preload/preload.js", "reason": "target layout this ADR plans, not yet reached" },
{ "doc": "docs/live-testing.md", "ref": "live.js", "reason": "script the reader writes in a scratch directory" },
Expand Down
2 changes: 1 addition & 1 deletion scripts/module-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function walk(root, directory, accept = isJavaScript) {
function appFiles(root) {
return [
...fs.readdirSync(root).filter(isJavaScript),
...walk(root, 'workers'), ...walk(root, 'src'), ...walk(root, 'scripts'), ...walk(root, 'harnesses'),
...walk(root, 'workers'), ...walk(root, 'src'), ...walk(root, 'scripts'),
].sort();
}

Expand Down
2 changes: 1 addition & 1 deletion session-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function shutdownProducers() {
}

const { getFolderIndexMtimeMs } = require('./folder-index-state');
const { getHarness, DEFAULT_HARNESS, harnessForFolder, prefixedHarnesses, harnessFolderIndexMtimeMs } = require('./harnesses');
const { getHarness, DEFAULT_HARNESS, harnessForFolder, prefixedHarnesses, harnessFolderIndexMtimeMs } = require('./src/main/harnesses');
const { setRemappedProjectReader } = require('./encode-project-path');
const { deriveProjectPath, storedProjectPathMatchesFolder, resolveWorktreePath } = require('./derive-project-path');
const { readSessionFile, readSessionDisplayHeader, readSessionEntrypoint, isSdkEntrypoint, enumerateSessionFiles, resolveJsonlPath, mergeBridgeGroups, isCanonicalWorkflowPath } = require('./read-session-file');
Expand Down
2 changes: 1 addition & 1 deletion session-index-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { createHash } = require('node:crypto');
const path = require('node:path');
const { archiveProjectIdentity: projectIdentity } = require('./src/main/projects/project-archive-workflow');
const { parseFolderKey, enabledHosts } = require('./src/main/remote/remote-hosts');
const { assertHarnessSettings } = require('./harnesses');
const { assertHarnessSettings } = require('./src/main/harnesses');

const requestError = (code, message) => Object.assign(new Error(message), { code });
const requestBytes = value => Buffer.isBuffer(value) || (ArrayBuffer.isView(value) && value.BYTES_PER_ELEMENT === 1);
Expand Down
2 changes: 1 addition & 1 deletion session-transitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ function resolvePendingLaunches(harness, candidatePaths) {
}

function sweepPendingLaunches() {
const { getHarness } = require('./harnesses');
const { getHarness } = require('./src/main/harnesses');
const since = new Map();
for (const [, session] of pendingLaunchSessions()) {
const harness = getHarness(session.runtime);
Expand Down
20 changes: 10 additions & 10 deletions harnesses/claude.js → src/main/harnesses/claude.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
const transcripts = require('../read-session-file');
const { classifyTranscriptPath } = require('../subagent-attribution');
const projects = require('../derive-project-path');
const { encodeProjectPath } = require('../encode-project-path');
const { resolveContinuations, resolveContinuationsSync } = require('../session-continuations');
const { liveElsewhere } = require('../cli-session-state');
const { getCachedJobs } = require('../src/main/bg-agents/bg-agents');
const { resolveWindowsClaude } = require('../claude-binary');
const { classifyTitleActivity } = require('../classify-title-activity');
const { normalizeBrowserSettings } = require('../public/setting-defaults');
const transcripts = require('../../../read-session-file');
const { classifyTranscriptPath } = require('../../../subagent-attribution');
const projects = require('../../../derive-project-path');
const { encodeProjectPath } = require('../../../encode-project-path');
const { resolveContinuations, resolveContinuationsSync } = require('../../../session-continuations');
const { liveElsewhere } = require('../../../cli-session-state');
const { getCachedJobs } = require('../bg-agents/bg-agents');
const { resolveWindowsClaude } = require('../../../claude-binary');
const { classifyTitleActivity } = require('../../../classify-title-activity');
const { normalizeBrowserSettings } = require('../../../public/setting-defaults');

function parseAddDirs(value) {
if (!value) return [];
Expand Down
10 changes: 5 additions & 5 deletions harnesses/codex.js → src/main/harnesses/codex.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
const { scanLines, readHead } = require('../jsonl-scan');
const { observation, fullReadStamp } = require('../src/main/session-index/full-read-state');
const { bodyRead, readAuxiliaryFile } = require('../src/main/session-index/read-counters');
const { collectRefs, newestFirst } = require('../src/main/session-index/session-refs');
const { scanLines, readHead } = require('../../../jsonl-scan');
const { observation, fullReadStamp } = require('../session-index/full-read-state');
const { bodyRead, readAuxiliaryFile } = require('../session-index/read-counters');
const { collectRefs, newestFirst } = require('../session-index/session-refs');

const id = 'codex';
const label = 'Codex';
Expand Down Expand Up @@ -271,7 +271,7 @@ function readSessionFile(filePath, folder, opts) {
aiTitle,
};
} catch (error) {
require('../src/main/session-index/read-counters').failedRead(filePath);
require('../session-index/read-counters').failedRead(filePath);
if (opts?.startup) {
opts.outcome.status = ['ENOENT', 'ENOTDIR'].includes(error.code) ? 'absent' : 'failed';
opts.outcome.error = error.code || error.name || 'ReadError';
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions harnesses/index.js → src/main/harnesses/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
const claude = require('./claude');
const codex = require('./codex');
const { assertHarness } = require('./contract');
const { parseFolderKey } = require('../src/main/remote/remote-hosts');
const { getTranscriptsIndexMtimeMs } = require('../folder-index-state');
const { parseFolderKey } = require('../remote/remote-hosts');
const { getTranscriptsIndexMtimeMs } = require('../../../folder-index-state');

const HARNESSES = { [claude.id]: assertHarness(claude), [codex.id]: assertHarness(codex) };
const DEFAULT_HARNESS = claude.id;
Expand Down Expand Up @@ -65,7 +65,7 @@ function readHarnessFolder(harness, folder) {
const dir = harness.folderPath(folder);
if (!dir) return null;
const files = harness.listTranscripts(dir);
require('../src/main/session-index/read-counters').enumerateReads(files);
require('../session-index/read-counters').enumerateReads(files);
const sessions = [];
for (const file of files) {
try {
Expand Down
Loading
Loading