GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(sync): merge upstream main for RTVision 0.0.66 by kalvenschraut · Pull Request #75 · RTVision/t3code

chore(sync): merge upstream main for RTVision 0.0.66 #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
kalvenschraut merged 29 commits into rtvision from sync/upstream-rtvision-0.0.66
Oct 1, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

chore(sync): merge upstream main for RTVision 0.0.66 #75

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2cbc24f
chore(release): prepare v0.0.43
t3-code-bot[bot] Sep 29, 2026
451afcb
fix(codex): Pro Max accounts load, so Ultrafast shows up (#14304)
t3dotgg Sep 29, 2026
1a553d0
fix(shared): merge OpenCode Go limits by credential (#14209)
Yash-Singh1 Sep 29, 2026
4222485
feat(codex): regenerate protocol bindings for Codex 0.159 (#14311)
juliusmarminge Sep 29, 2026
ff1db03
chore(release): prepare v0.0.44
t3-code-bot[bot] Sep 29, 2026
8792f95
test(server): stop pinning codex install advisory to a release range …
maria-rcks Sep 29, 2026
63b61e6
chore: stop CodeRabbit from editing PR descriptions (#14307)
t3dotgg Sep 30, 2026
60cb7d1
fix(web): unresolved pull request links use the compact link tooltip …
flamboh Sep 30, 2026
88fbc2c
fix(client-runtime): keep model ids in inline code from becoming file…
otavio Sep 30, 2026
916ec94
fix(web): show the agent's question on user-input timeline rows (#12900)
saphid Sep 30, 2026
55ec55b
fix(web): open workspace root links in the file explorer (#12449)
saphid Sep 30, 2026
050cfad
fix(grok): recover from crashed provider sessions (#10607)
saphid Sep 30, 2026
2a23c30
fix(web): let command menu descriptions use the full row width (#8865)
jakaskerjanc Sep 30, 2026
0fcd5f9
fix(web): multi-PR badges open the linked pull requests panel (#13211)
flamboh Sep 30, 2026
c18e5ea
fix(web): stop clipping the bottoms of diff file names (#14375)
shivamhwp Sep 30, 2026
c2fa9fc
fix(web): name the step that registers a mobile client (#10963)
Sethmr Sep 30, 2026
3896914
test(desktop): Keep WSL busy-runtime fixtures visible when sh is bash…
mwolson Sep 30, 2026
35be904
chore: bump vite-plus to 1.0 (#14462)
juliusmarminge Sep 30, 2026
792c7dd
fix(web): show double bolts for Codex Ultrafast (#14479)
t3dotgg Sep 30, 2026
0d9468f
docs: define contribution triage policy (#14480)
juliusmarminge Sep 30, 2026
d5980a0
docs: use explicit contribution triage exemptions (#14485)
juliusmarminge Sep 30, 2026
bd89c13
fix(server): Grok CLIs older than 1.0.13 are marked broken (#14486)
juliusmarminge Sep 30, 2026
7c67876
fix(clients): hide disconnected environments when adding projects (#1…
juliusmarminge Sep 30, 2026
6b286ae
feat: start threads without a project (#13612)
t3dotgg Sep 30, 2026
9da066d
fix(server): Claude /compact no longer ends early and leaves the thre…
t3dotgg Oct 1, 2026
1905846
fix(web): Dark+ and Light+ themes import instead of colliding with bu…
flamboh Oct 1, 2026
0cf482b
fix(web): make composer suggestions usable with screen readers (#10154)
akj Oct 1, 2026
ff90400
chore(sync): import upstream main before RTVision conflict overlays
kalvenschraut Oct 1, 2026
1544018
fix(sync): retain RTVision integrations for release 0.0.66
kalvenschraut Oct 1, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(server): Claude /compact no longer ends early and leaves the thre…
…ad busy (pingdotgg#14497)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg @claude
t3dotgg and claude authored Oct 1, 2026
commit 9da066dbe906310671b86290b09df0b56a88ffa5

There are no files selected for viewing

67 changes: 67 additions & 0 deletions 67 apps/server/src/provider/Layers/ClaudeAdapter.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1557,6 +1557,73 @@ describe("ClaudeAdapterLive", () => {
);
});

it.effect("keeps a turn open past the result of a Claude-initiated turn", () => {
const harness = makeHarness();
return Effect.gen(function* () {
const adapter = yield* ClaudeAdapter;
const runtimeEventsFiber = yield* adapter.streamEvents.pipe(
Stream.takeUntil((event) => event.type === "session.exited"),
Stream.runCollect,
Effect.forkChild,
);

const session = yield* adapter.startSession({
threadId: THREAD_ID,
provider: ProviderDriverKind.make("claudeAgent"),
runtimeMode: "full-access",
});
const turn = yield* adapter.sendTurn({
threadId: session.threadId,
input: "/compact",
attachments: [],
});

// Recorded order after a resume: Claude first reports a background task
// the previous process left behind, then runs the queued `/compact`.
harness.query.emit({
type: "result",
subtype: "success",
is_error: false,
num_turns: 0,
origin: { kind: "task-notification" },
session_id: "sdk-session-1",
uuid: "result-task-notification",
} as unknown as SDKMessage);
harness.query.emit({
type: "system",
subtype: "compact_boundary",
compact_metadata: { trigger: "manual", pre_tokens: 959489, post_tokens: 10107 },
session_id: "sdk-session-1",
uuid: "compact-boundary",
} as unknown as SDKMessage);
harness.query.emit({
type: "result",
subtype: "success",
is_error: false,
num_turns: 0,
user_message_uuid: turn.turnId,
user_message_uuids: [turn.turnId],
local_command: "compact",
session_id: "sdk-session-1",
uuid: "result-compact",
} as unknown as SDKMessage);
harness.query.finish();

const runtimeEvents = Array.from(yield* Fiber.join(runtimeEventsFiber));
const compactedIndex = runtimeEvents.findIndex(
(event) => event.type === "thread.state.changed" && event.payload.state === "compacted",
);
const completedIndex = runtimeEvents.findIndex((event) => event.type === "turn.completed");
assert.equal(runtimeEvents.filter((event) => event.type === "turn.completed").length, 1);
assert.equal(String(runtimeEvents[completedIndex]?.turnId), String(turn.turnId));
assert.equal(String(runtimeEvents[compactedIndex]?.turnId), String(turn.turnId));
assert.isAbove(completedIndex, compactedIndex);
}).pipe(
Effect.provideService(Random.Random, makeDeterministicRandomService()),
Effect.provide(harness.layer),
);
});

it.effect("steers a running turn instead of opening a new one on mid-turn sendTurn", () => {
const harness = makeHarness();
return Effect.gen(function* () {
Expand Down
33 changes: 33 additions & 0 deletions 33 apps/server/src/provider/Layers/ClaudeAdapter.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,27 @@ function isOverloadedResult(result: SDKResultMessage): boolean {
return result.subtype === "success" && result.api_error_status === 529;
}

/**
* True when a result answers a different Claude turn than the active real
* turn. Claude runs turns of its own between user prompts (a resumed session
* first reports background tasks the previous process left behind; peer
* messages wake the agent), and a queued prompt waits behind them. Real turns
* send their turn id as the prompt uuid, which newer CLIs echo in
* `user_message_uuids`. Claude-initiated turns echo nothing and carry a
* non-human `origin`. Results with neither field (older CLIs) still complete
* the active turn.
*/
function isResultForOtherTurn(result: SDKResultMessage, turn: ClaudeTurnState): boolean {
// A synthetic turn mirrors a Claude-initiated turn, so any result is its own.
if (turn.synthetic) return false;
const echoed = [
...(result.user_message_uuids ?? []),
...(result.user_message_uuid ? [result.user_message_uuid] : []),
];
if (echoed.length > 0) return !echoed.includes(turn.turnId);
return result.origin !== undefined && result.origin.kind !== "human";
}

/** Derives turn status and its error from the same provider result. */
function resultOutcome(
result: SDKResultMessage,
Expand Down Expand Up @@ -3486,6 +3507,18 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
}

const turn = context.turnState;
if (turn && isResultForOtherTurn(message, turn)) {
// Completing here would end the user's turn before its prompt runs. A
// `/compact` would then compact with no turn open and leave the thread
// looking busy.
yield* Effect.logInfo("claude.turn.result-for-other-turn", {
threadId: context.session.threadId,
turnId: turn.turnId,
origin: message.origin?.kind,
numTurns: message.num_turns,
});
return;
}
const failureHint =
turn?.authenticationFailureMessage ??
(turn && (turn.rejectedRateLimitTypes.size > 0 || turn.latestAssistantRateLimited)
Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.