Skip to content

Fix agent session history loading#136

Merged
warren618 merged 1 commit into
HKUDS:mainfrom
fightZy:codex/fix-agent-session-loading
May 24, 2026
Merged

Fix agent session history loading#136
warren618 merged 1 commit into
HKUDS:mainfrom
fightZy:codex/fix-agent-session-loading

Conversation

@fightZy
Copy link
Copy Markdown
Contributor

@fightZy fightZy commented May 23, 2026

Background

Opening an existing Agent session can leave the conversation area stuck on loading skeletons in development. The session-loading effect increments its generation counter on every effect run, so a no-op rerun can mark the in-flight history request as stale before it clears the loading state.

Changes

  • Increment the session load generation only when actually switching sessions or resetting the current session.
  • Preserve the existing cached-session and SSE setup behavior.

@warren618 warren618 force-pushed the codex/fix-agent-session-loading branch from 6d42e66 to eadcbc8 Compare May 24, 2026 16:52
@warren618 warren618 merged commit ea2b513 into HKUDS:main May 24, 2026
@warren618
Copy link
Copy Markdown
Collaborator

@fightZy Thanks for the fix! Merged. I rebased the branch onto the latest main to resolve the Agent.tsx conflict from the newer goal workflow, kept your authorship on the commit, and verified the frontend build passes. Great catch on the stale generation/loading skeleton issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants