Skip to content

feat(opencode): add session status endpoint - #29540

Closed
TheLoroXD wants to merge 1 commit into
anomalyco:devfrom
TheLoroXD:codex/session-status-endpoint
Closed

TheLoroXD wants to merge 1 commit into
anomalyco:devfrom
TheLoroXD:codex/session-status-endpoint

Conversation

@TheLoroXD

@TheLoroXD TheLoroXD commented May 27, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #29166

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds GET /session/:sessionID/status by exposing the existing single-session SessionStatus.Service.get() method over HTTP. The handler first checks that the session exists, matching the other session-specific read endpoints.

This draft also includes generated OpenAPI/SDK changes and route coverage for idle status and typed 404 responses. I saw the duplicate bot flagged #29165 and #29244; this PR keeps the same scope but includes tests and SDK output.

How did you verify your code works?

  • bun run script/generate.ts
  • bun test --timeout 30000 test/server/httpapi-session.test.ts from packages/opencode
  • bun run typecheck from packages/opencode
  • pre-push bun turbo typecheck

Screenshots / recordings

N/A, API-only change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label May 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Found potential duplicates! Here are the related PRs:

Potential Duplicates

  1. PR feat(api): add single-session status HTTP endpoint #29244: feat(api): add single-session status HTTP endpoint

  2. PR fix(opencode): expose single session status endpoint #29165: fix(opencode): expose single session status endpoint

These PRs are likely addressing the same GitHub issue (#29166 mentioned in your description) and may have overlapping changes or implementations for the session status endpoint feature.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@TheLoroXD
TheLoroXD marked this pull request as ready for review June 2, 2026 05:01
@TheLoroXD
TheLoroXD force-pushed the codex/session-status-endpoint branch from 5c50df9 to 95e8ebb Compare June 2, 2026 05:01
@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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.

Session status service has get() method but no single-session HTTP endpoint

1 participant