Github runner crashing when creating PR with title too long #2466

Closed
opened 2026-02-16 17:35:45 -05:00 by yindo · 4 comments
Owner

Originally created by @AKTheKnight on GitHub (Nov 1, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Twice now I've had the runner fail with Error: Validation Failed: {"resource":"Issue","code":"custom","field":"title","message":"title is too long (maximum is 256 characters)"} errors as it attempts to open the PR after being triggered by a /oc run.

I'm happy to provide logs/give someone access to the private repo if needed to help them investigate this.
I'll keep working to find a reproduction

OpenCode version

1.0.10

Steps to reproduce

I've hit this twice just by asking it to complete plans from an issue

Screenshot and/or share link

Image

Operating System

No response

Terminal

No response

Originally created by @AKTheKnight on GitHub (Nov 1, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Twice now I've had the runner fail with `Error: Validation Failed: {"resource":"Issue","code":"custom","field":"title","message":"title is too long (maximum is 256 characters)"}` errors as it attempts to open the PR after being triggered by a `/oc` run. I'm happy to provide logs/give someone access to the private repo if needed to help them investigate this. I'll keep working to find a reproduction ### OpenCode version 1.0.10 ### Steps to reproduce I've hit this twice just by asking it to complete plans from an issue ### Screenshot and/or share link <img width="912" height="797" alt="Image" src="https://github.com/user-attachments/assets/30e20dfe-e501-4030-bdb5-fce5ea08a2a7" /> ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:35:45 -05:00
yindo closed this issue 2026-02-16 17:35:45 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 1, 2025):

should be an easy fix

@rekram1-node commented on GitHub (Nov 1, 2025): should be an easy fix
Author
Owner

@rekram1-node commented on GitHub (Nov 1, 2025):

/oc read github/index.ts, figure out where pull request titles are being set before a pull request is created. We need to truncate the title to fix the following user issue:

Twice now I've had the runner fail with Error: Validation Failed: {"resource":"Issue","code":"custom","field":"title","message":"title is too long (maximum is 256 characters)"} errors as it attempts to open the PR after being triggered by a /oc run.

When doing this, follow best practices

@rekram1-node commented on GitHub (Nov 1, 2025): /oc read github/index.ts, figure out where pull request titles are being set before a pull request is created. We need to truncate the title to fix the following user issue: > Twice now I've had the runner fail with Error: Validation Failed: {"resource":"Issue","code":"custom","field":"title","message":"title is too long (maximum is 256 characters)"} errors as it attempts to open the PR after being triggered by a /oc run. When doing this, follow best practices
Author
Owner

@opencode-agent[bot] commented on GitHub (Nov 1, 2025):

Created PR #3727

New%20session%20-%202025-11-02T01%3A05%3A49.185Z
opencode session  |  github run

@opencode-agent[bot] commented on GitHub (Nov 1, 2025): Created PR #3727 <a href="https://opencode.ai/s/vHSuy3V1"><img width="200" alt="New%20session%20-%202025-11-02T01%3A05%3A49.185Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTExLTAyVDAxOjA1OjQ5LjE4NVo=.png?model=opencode/glm-4.6&version=1.0.10&id=vHSuy3V1" /></a> [opencode session](https://opencode.ai/s/vHSuy3V1)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/19005216307)
Author
Owner

@rekram1-node commented on GitHub (Nov 1, 2025):

should be fixed on latest.

@rekram1-node commented on GitHub (Nov 1, 2025): should be fixed on latest.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2466