Skip to content

t1305: update upstream streaming hooks issue status and architecture verification#2201

Merged
marcusquinn merged 1 commit intomainfrom
feature/t1305
Feb 24, 2026
Merged

t1305: update upstream streaming hooks issue status and architecture verification#2201
marcusquinn merged 1 commit intomainfrom
feature/t1305

Conversation

@alex-solovyev
Copy link
Collaborator

Summary

Upstream Status

Item Link State
Original issue anomalyco/opencode#14691 CLOSED (superseded)
Active issue anomalyco/opencode#14740 OPEN
Active PR anomalyco/opencode#14741 OPEN, MERGEABLE
Internal PR #2152 MERGED

Ref #2129

- Original issue #14691 closed, superseded by #14740
- Active PR #14741 open with unit tests, 6/8 CI checks pass
- Added architecture verification: processor.ts location confirmed,
  v1.2.7 Bun->Filesystem migration does not affect streaming/plugin arch
- Clarified anomalyco/opencode (109k, TS) vs opencode-ai/opencode (11k, Go)
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 23, 2026

Warning

Rate limit exceeded

@alex-solovyev has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 13 minutes and 11 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 1614834 and 39ea567.

📒 Files selected for processing (1)
  • todo/t1305-opencode-streaming-hooks-issue.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/t1305

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello @alex-solovyev, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the documentation for the t1305 OpenCode streaming hooks issue. It provides a detailed update on the upstream development status, including the lifecycle of related issues and pull requests. Additionally, it incorporates an architectural verification to confirm the stability of core components post-migration and clarifies the specific target repository for this feature, enhancing the accuracy and completeness of the project's internal tracking.

Highlights

  • Upstream Issue Status Update: The status of the upstream OpenCode streaming hooks issue (t1305) has been comprehensively updated, detailing the progression from an original closed issue to an active issue and an open, mergeable pull request with unit tests.
  • Architecture Verification Added: A new section for architecture verification has been included, confirming the processor.ts location and the plugin system's stability after the v1.2.7 Bun to Filesystem migration, and clarifying the target repository.
  • Target Repository Clarification: The documentation now explicitly distinguishes between anomalyco/opencode (TypeScript) and opencode-ai/opencode (Go), ensuring clarity on which project is the target for the streaming hooks feature.
Changelog
  • todo/t1305-opencode-streaming-hooks-issue.md
    • Updated the status section to reflect the current state of upstream issues and pull requests, including a timeline of events.
    • Modified the target repository description to include star count, language, and version.
    • Revised the issue title for clarity.
    • Added an 'Architecture Verification' section to confirm the location of processor.ts and the stability of the plugin system after a migration.
    • Included a note to differentiate between the TypeScript and Go OpenCode projects.
Activity
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 42 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Mon Feb 23 21:22:00 UTC 2026: Code review monitoring started
Mon Feb 23 21:22:01 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 42

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 42
  • VULNERABILITIES: 0

Generated on: Mon Feb 23 21:22:03 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request updates the upstream issue status and adds an architecture verification section following the v1.2.7 migration. The changes are well-documented and ensure the task remains aligned with the target repository's current state. The suggested minor formatting improvements and noted implementation gap in the code sketch will help maintain the high quality of the documentation.

### Timeline

1. Issue #14691 created (2026-02-22) with full research, benchmark data, code sketch
2. PR #14727 submitted with initial implementation

Choose a reason for hiding this comment

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

medium

For consistency with the other items in the timeline, please add the date for when PR #14727 was submitted.

Comment on lines +242 to +247
- **`processor.ts` location**: Confirmed still in `packages/opencode/src/session/` (TypeScript codebase)
- **Plugin system**: `packages/plugin/src/index.ts` -- `Plugin.trigger()` pattern unchanged
- **Streaming loop**: `for await (const value of stream.fullStream)` switch statement in processor.ts
- **v1.2.1 PartDelta SDK events**: `text-delta`, `reasoning-delta`, `tool-input-delta` events from AI SDK
- **v1.2.7 migration**: Bun.file() -> Filesystem module (file I/O layer), does NOT affect streaming/plugin architecture
- **Current version**: v1.2.10 (released 2026-02-20)

Choose a reason for hiding this comment

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

medium

The architecture verification section is a great addition. I have a few suggestions for improvement:

  1. Formatting Consistency: Use backticks for file paths (e.g., packages/plugin/src/index.ts), method names (Plugin.trigger()), and event identifiers (text-delta) to match the style in line 242.
  2. Implementation Gap: You've identified reasoning-delta as an available event in line 245, and it's included in the stream.delta hook definition (line 95). However, it is currently missing from the processor.ts code sketch. Consider adding a case for it in the sketch to ensure completeness.

- **v1.2.7 migration**: Bun.file() -> Filesystem module (file I/O layer), does NOT affect streaming/plugin architecture
- **Current version**: v1.2.10 (released 2026-02-20)

**Note:** There is a separate Go project `opencode-ai/opencode` (11k stars) which is a different product entirely. The target for this task is `anomalyco/opencode` (109k stars, TypeScript).

Choose a reason for hiding this comment

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

medium

Repository names should be wrapped in backticks to match the formatting used in the 'Target Repository' section (line 24). Also, consider using 109k+ for the star count to remain consistent with the earlier mention.

@marcusquinn marcusquinn merged commit b4cb4b5 into main Feb 24, 2026
19 checks passed
@marcusquinn marcusquinn deleted the feature/t1305 branch February 24, 2026 04:43
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