Skip to content

fix(session): update activity on prompt - #39539

Merged
opencode-agent[bot] merged 3 commits into
v2from
sort-sessions-updated
Jul 30, 2026
Merged

fix(session): update activity on prompt#39539
opencode-agent[bot] merged 3 commits into
v2from
sort-sessions-updated

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • advance a session’s persisted time_updated when a prompt is admitted
  • preserve the existing API and TUI ordering by most recent update
  • rely on the TUI session picker’s refreshed server list rather than mutating its local cache

Tests

  • packages/core: bun test test/session-create.test.ts --timeout 30000
  • packages/core: bun typecheck

Requested by: @jlongster (James Long via Slack)

Comment thread packages/tui/src/context/data.tsx Outdated
}
case "session.input.admitted":
if (store.session.info[event.data.sessionID])
setStore("session", "info", event.data.sessionID, "time", "updated", event.created)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you have to add this

@opencode-agent opencode-agent Bot changed the title fix(session): sort by latest activity fix(session): update activity on prompt Jul 30, 2026
@opencode-agent
opencode-agent Bot enabled auto-merge (squash) July 30, 2026 16:17
@opencode-agent
opencode-agent Bot merged commit d6371f2 into v2 Jul 30, 2026
9 checks passed
@opencode-agent
opencode-agent Bot deleted the sort-sessions-updated branch July 30, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant