Skip to content
Merged
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
1 change: 1 addition & 0 deletions FORK_CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ setting is missing here or a setting named here does not exist.
| Handoff instead of compaction, part 1: the setting and the pure "should this thread hand off now?" decision. Nothing acts on it yet. | Long threads keep their children, PRs and waits instead of compacting. | `server.handoff`, `projectOverride.handoff` | off | [#282](https://github.com/scuttletoby/t3code/pull/282) |
| Review rules, part 1: the setting for how this machine runs a review lens (runner, state question), off by default; `{"preset": "recommended"}` turns the fork's defaults on. A bad hand edit reads as off and is kept. Nothing reads it yet. | The repo says what a pull request needs and CI enforces it; the machine says how reviews run. | `server.reviewRules`, `projectOverride.reviewRules` | off | [#291](https://github.com/scuttletoby/t3code/pull/291) |
| An interval setting the settings file cannot hold (negative, not finite, too large) is refused when saved; one already in the file reads as its default instead of resetting every setting. A test finds every interval setting from the schema. | A `1e400` saved as `null` made the next start reject the whole settings file. | none | always | [#323](https://github.com/scuttletoby/t3code/pull/323) |
| Handoff instead of compaction, part 2: the handoff service hands a big or idle thread to a fresh session in the same thread, with T3's state and the recent conversation, only while the thread is quiet and still at the run that triggered it. | Long threads keep their children, PRs and waits instead of compacting. | `server.handoff`, `projectOverride.handoff` | off | [#320](https://github.com/scuttletoby/t3code/pull/320) |

## Repository, CI and releases

Expand Down
9 changes: 8 additions & 1 deletion apps/server/src/fork/forkLayers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import * as HeadlessUsageRefresher from "../usage/HeadlessUsageRefresher.ts";
import * as UsagePacer from "../usage/UsagePacer.ts";
import * as UsageReadingsHistory from "../usage/UsageReadingsHistory.ts";
import * as WorkAdmission from "../workAdmission.ts";
import * as HandoffService from "./handoff/HandoffService.ts";

/** Wraps upstream's agent activity relay: a held server (`serve --hold-work`) publishes none. */
export const holdWorkAgentActivity = HoldWorkConnect.agentActivityLayer;
Expand All @@ -28,11 +29,17 @@ export const holdWorkCloudLink = <E, R, ROut2, E2, R2>(
reachabilityLayer: Layer.Layer<ROut2, E2, R2>,
) => HoldWorkConnect.layer(cloudLinkLayer).pipe(Layer.provideMerge(reachabilityLayer));

/** In the runtime's core dependencies: usage pacer (and its history), slot gate, usage refresher. */
/**
* In the runtime's core dependencies (server.ts's `layerRuntimeCoreDependenciesBase`, not its local
* `layerRuntimeServices`): usage pacer (and its history), slot gate, usage refresher, and the
* handoff service (fork/handoff), which upstream's own `mergeAll` builds concurrently beside its
* idle compaction worker.
*/
export const layerRuntimeServices = Layer.mergeAll(
UsagePacer.layer.pipe(Layer.provideMerge(UsageReadingsHistory.layer)),
SlotGate.layer,
HeadlessUsageRefresher.layer,
HandoffService.layer,
);

/** In the routes, after upstream's follower of tasks in linked environments. */
Expand Down
Loading
Loading