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
22 changes: 10 additions & 12 deletions apps/server/src/serverSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1070,18 +1070,16 @@ const make = Effect.gen(function* () {
}
for (const sourceId of Object.keys(current.usageLimitSources)) {
if (sourceId in next.usageLimitSources) continue;
yield* secretStore
.remove(usageLimitSourceSecretName(sourceId))
.pipe(
Effect.mapError(
(cause) =>
new ServerSettingsError({
settingsPath,
operation: "remove-stale-secret",
cause,
}),
),
);
yield* secretStore.remove(usageLimitSourceSecretName(sourceId)).pipe(
Effect.mapError(
(cause) =>
new ServerSettingsError({
settingsPath,
operation: "remove-stale-secret",
cause,
}),
),
);
}
return {
...next,
Expand Down
24 changes: 12 additions & 12 deletions docs/internals/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ Terms whose meaning matters across T3 Code. Architecture and lifecycle constrain

## Providers and checkpoints

| Term | Meaning |
| ------------------- | ------------------------------------------------------------------------------------------------------------ |
| Provider | The agent runtime T3 Code controls, such as Codex or Claude Code. |
| Driver | The integration for a provider kind. |
| Provider instance | One configured provider, with its own settings and lifecycle. Multiple instances can use the same driver. |
| Adapter | The boundary translating a provider's native protocol into T3 Code operations and events. |
| Session | The provider runtime attached to a thread. A session can be stopped and resumed without deleting the thread. |
| Runtime mode | The thread's permission policy. See [permission modes](../user/permission-modes.md). |
| Interaction mode | How the agent approaches the task, such as planning. Separate from permission policy. |
| Checkpoint | A saved workspace state used for diffs and restore, stored as a hidden Git ref. |
| Checkpoint baseline | The workspace state captured before the work being compared. |
| Turn diff | The workspace changes attributed to one turn. |
| Term | Meaning |
| -------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Provider | The agent runtime T3 Code controls, such as Codex or Claude Code. |
| Driver | The integration for a provider kind. |
| Provider instance | One configured provider, with its own settings and lifecycle. Multiple instances can use the same driver. |
| Adapter | The boundary translating a provider's native protocol into T3 Code operations and events. |
| Session | The provider runtime attached to a thread. A session can be stopped and resumed without deleting the thread. |
| Runtime mode | The thread's permission policy. See [permission modes](../user/permission-modes.md). |
| Interaction mode | How the agent approaches the task, such as planning. Separate from permission policy. |
| Checkpoint | A saved workspace state used for diffs and restore, stored as a hidden Git ref. |
| Checkpoint baseline | The workspace state captured before the work being compared. |
| Turn diff | The workspace changes attributed to one turn. |
| Ticket provider | An external issue tracker consulted only to resolve a linked ticket's metadata. Not an agent provider. |
| Thread process claim | A thread's registered ownership of a root process, so a machine-wide telemetry snapshot can be split per thread. |

Expand Down
5 changes: 1 addition & 4 deletions packages/effect-codex-app-server/src/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,7 @@ it("accepts Codex misalignment policy errors for historical and live turns", ()
assert.equal(isThreadRollbackResponse({ thread: failedThread }), true);
assert.equal(isThreadForkResponse(forkLikeResponse), true);
const decodedResume = decodeThreadResumeResponse(resumeLikeResponse);
assert.equal(
decodedResume.thread.turns[0]?.error?.codexErrorInfo,
"misalignmentPolicyViolation",
);
assert.equal(decodedResume.thread.turns[0]?.error?.codexErrorInfo, "misalignmentPolicyViolation");
assert.equal(
isTurnCompletedNotification({
threadId: "thread-1",
Expand Down
Loading