[PR #1369] [CLOSED] implement the includeCoAuthoredBy option #9905

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1369
Author: @CodinCat
Created: 7/28/2025
Status: Closed

Base: devHead: add-includeCoAuthoredBy


📝 Commits (1)

  • 441355e implement the includeCoAuthoredBy option

📊 Changes

3 files changed (+71 additions, -50 deletions)

View changed files

📝 packages/opencode/src/config/config.ts (+4 -0)
📝 packages/opencode/src/tool/bash.ts (+64 -38)
📝 packages/opencode/src/tool/bash.txt (+3 -12)

📄 Description

let me know if you want to merge this. I'll resolve the conflicts
and feel free to just close this PR if you don't want this to be added.


fix #919

Add the include_co_authored_by option. The behavior is copied from Claude Code.

When it's true (default) the prompt remains unchanged. I copied the original prompt and verified it with a temporary test:

test("bash.txt", () => {
  const bashTxtPath = join(process.cwd(), "packages/opencode/src/tool/bash-backup.txt")
  const currentContent = readFileSync(bashTxtPath, "utf-8")
  expect(replaceCoAuthoredMessage()).toBe(currentContent)
})

And this is how the three places look when it's false. This should be the same as Claude Code:

1
commit 1

2
commit 2

3
commit 3


actual usage:

true:
true

false:
false


🔄 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/1369 **Author:** [@CodinCat](https://github.com/CodinCat) **Created:** 7/28/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `add-includeCoAuthoredBy` --- ### 📝 Commits (1) - [`441355e`](https://github.com/anomalyco/opencode/commit/441355eb9c73a7c51c7f4f671e8c8d5f55de2079) implement the includeCoAuthoredBy option ### 📊 Changes **3 files changed** (+71 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/config/config.ts` (+4 -0) 📝 `packages/opencode/src/tool/bash.ts` (+64 -38) 📝 `packages/opencode/src/tool/bash.txt` (+3 -12) </details> ### 📄 Description let me know if you want to merge this. I'll resolve the conflicts and feel free to just close this PR if you don't want this to be added. --- fix #919 Add the `include_co_authored_by` option. The behavior is copied from Claude Code. When it's true (default) the prompt remains unchanged. I copied the original prompt and verified it with a temporary test: ```ts test("bash.txt", () => { const bashTxtPath = join(process.cwd(), "packages/opencode/src/tool/bash-backup.txt") const currentContent = readFileSync(bashTxtPath, "utf-8") expect(replaceCoAuthoredMessage()).toBe(currentContent) }) ``` And this is how the three places look when it's false. This should be the same as Claude Code: 1 <img width="578" height="108" alt="commit 1" src="https://github.com/user-attachments/assets/143815bc-5e85-4b6b-913a-1e4197074fc2" /> 2 <img width="438" height="171" alt="commit 2" src="https://github.com/user-attachments/assets/719c7e89-d0ae-41a0-959b-725666cf4569" /> 3 <img width="602" height="281" alt="commit 3" src="https://github.com/user-attachments/assets/82bb2172-2dae-4c5f-9fdd-dab075d16fa4" /> --- actual usage: true: <img width="575" height="286" alt="true" src="https://github.com/user-attachments/assets/1bd18f9b-b1a9-43c6-be23-427a1e1662f1" /> false: <img width="487" height="179" alt="false" src="https://github.com/user-attachments/assets/08508ea5-68b7-41ec-abd6-8727e6006c0a" /> --- <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:14:22 -05:00
yindo closed this issue 2026-02-16 18:14:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9905