Skip to content

Integrate upstream remote-agent reliability improvements#15

Merged
jln13x merged 11 commits into
personalfrom
t3code/upstream-pr-review
Jul 20, 2026
Merged

Integrate upstream remote-agent reliability improvements#15
jln13x merged 11 commits into
personalfrom
t3code/upstream-pr-review

Conversation

@jln13x

@jln13x jln13x commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • load older conversation history on demand and bound stale orchestration state
  • reduce idle Git, port-scanning, and streaming-summary work
  • keep Codex sessions alive while background agents are active
  • cache successful Git top-level lookups during reconnect replay
  • document each integrated upstream PR in the compact integration ledger

Upstream PRs: pingdotgg#4018, pingdotgg#4176, pingdotgg#4187, pingdotgg#4199, pingdotgg#4009, and pingdotgg#3166. PR pingdotgg#3166 was manually ported to the current resolver layout.

Validation

  • 67 focused server tests passed
  • vp check passed with zero errors
  • vp run typecheck passed

jln13x and others added 11 commits July 20, 2026 22:52
…review

# Conflicts:
#	AGENTS.md
#	apps/desktop/src/app/DesktopEnvironment.ts
#	apps/server/src/provider/Layers/CodexProvider.ts
#	apps/server/src/vcs/GitVcsDriverCore.test.ts
#	apps/web/src/components/AppSidebarLayout.tsx
#	apps/web/src/components/ChatView.tsx
#	apps/web/src/components/ComposerPromptEditor.tsx
#	apps/web/src/components/DiffPanel.tsx
#	apps/web/src/components/Sidebar.logic.test.ts
#	apps/web/src/components/Sidebar.logic.ts
#	apps/web/src/components/Sidebar.tsx
#	apps/web/src/components/chat/MessagesTimeline.test.tsx
#	apps/web/src/components/files/FileBrowserPanel.tsx
#	scripts/lib/brand-assets.ts
… state (Issue pingdotgg#4178)

Replays PR pingdotgg#4176 on current main and preserves the connection catch-up path from pingdotgg#4177.

Replace the array-backed command model with HashMap/HashSet state, evict deleted thread bodies, prune released VCS and browser caches, and clear per-thread client state.

Adds focused coverage for read-model invariants, deletion behavior, client cleanup, and VCS cache eviction after the final subscriber releases.

Co-authored-by: codex <codex@users.noreply.github.com>
Integrated from pingdotgg#4018 at de8fd65, adapted to retain the current draft hero/composer layout.
Retire the diff-workflow flag now covered by upstream defaults and preserve custom Codex launch arguments during project skill discovery.
# Conflicts:
#	AGENTS.md
#	apps/web/src/components/AppSidebarLayout.tsx
#	apps/web/src/components/DiffPanel.tsx
#	apps/web/src/components/Sidebar.tsx
#	apps/web/src/components/chat/MessagesTimeline.test.tsx
#	docs/personal-fork-changes.md
The provider session reaper stops sessions after 30 min of lastSeenAt
inactivity. Background agent work (dynamic workflows, subagents) keeps
running after the foreground turn settles, but the adapter session goes
"ready" with no active turn and nothing refreshes lastSeenAt — so the
reaper tears the session down mid-workflow, and the in-flight background
orchestration is lost.

Refresh lastSeenAt from runtime activity: ProviderService now bumps the
binding's last_seen_at when the adapter emits runtime events (e.g.
task.progress from background subagents), throttled per thread so an
event burst is at most one lightweight write per window. A new targeted
touchLastSeen on the runtime repository / session directory updates only
last_seen_at, and only for non-stopped rows so a reaped session is never
resurrected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Streaming assistant messages still update their message projection and thread timestamp, but no longer rebuild the full thread shell summary for every delta. Add a regression test that fails if the hot path reads activity history.
Port upstream PR pingdotgg#3166 onto the current project resolver layout.
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Jul 20, 2026
@jln13x
jln13x merged commit e3c4fa7 into personal Jul 20, 2026
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants