[PR #395] [MERGED] Fix undefined is not an object (evaluating 'G.title') #9607

Closed
opened 2026-02-16 18:13:50 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/395
Author: @scaryrawr
Created: 6/25/2025
Status: Merged
Merged: 6/25/2025
Merged by: @thdxr

Base: devHead: title-error


📝 Commits (1)

  • fae0f32 Add undefined metadata check

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 packages/opencode/src/cli/cmd/run.ts (+1 -1)

📄 Description

When doing opencode run 'Prompt' I see:

TypeError: undefined is not an object (evaluating 'G.title')

I asked opencode to fix the error and it honed in on metadata.title here and added optional chaining. I don't see the error when testing with a local build.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/395 **Author:** [@scaryrawr](https://github.com/scaryrawr) **Created:** 6/25/2025 **Status:** ✅ Merged **Merged:** 6/25/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `title-error` --- ### 📝 Commits (1) - [`fae0f32`](https://github.com/anomalyco/opencode/commit/fae0f32098eb834d1a0dbd31d388eea4e0f936a0) Add undefined metadata check ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/cli/cmd/run.ts` (+1 -1) </details> ### 📄 Description When doing `opencode run 'Prompt'` I see: ``` TypeError: undefined is not an object (evaluating 'G.title') ``` I asked opencode to fix the error and it honed in on `metadata.title` here and added optional chaining. I don't see the error when testing with a local build. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:50 -05:00
yindo closed this issue 2026-02-16 18:13:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9607