feat: Add non-interactive mode#18
Merged
adamdotdevin merged 7 commits intoanomalyco:devfrom May 16, 2025
Merged
Conversation
|
Hey @ezynda3 do you plan to bring this in the upstream opencode repo? |
Contributor
Author
|
@radutopala I was not planning to. Your PR is basically finished there, isn't it? The only thing I added was a spinner, which you're welcome to copy from here. |
- Moved spinner from format package to tui/components/spinner - Updated imports and references in root.go - Added basic test for spinner component 🤖 Generated with opencode Co-Authored-By: opencode <noreply@opencode.ai>
Contributor
Author
|
@adamdottv ready to review |
Member
|
thanks so much @ezynda3, so good |
carabistouflette
pushed a commit
to carabistouflette/opencode
that referenced
this pull request
Jun 16, 2025
sauerdaniel
added a commit
to sauerdaniel/opencode
that referenced
this pull request
Jan 17, 2026
Fixes memory leaks where LSP client maps grow indefinitely: - Clear diagnostics Map on shutdown (Issue anomalyco#17) - Clear files version tracking object on shutdown (Issue anomalyco#18)
nobane
added a commit
to nobane/opencode
that referenced
this pull request
Jan 30, 2026
- Fix input token accumulation bug: use last step's input tokens instead of accumulating (each step's input includes full context, not incremental) - Replace "opencode" with "Claude Code" in system prompts for Anthropic OAuth compatibility (PR anomalyco#18) v69.0.19: System prompt branding fix v69.0.20: Token over-counting fix Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tamarazuk
added a commit
to tamarazuk/opencode
that referenced
this pull request
Mar 3, 2026
- Log stderr from gh pr view instead of silently returning undefined (anomalyco#10) - Cap pr-comments pagination at 10 pages to prevent runaway requests (anomalyco#18) - Use resolveApiErrorMessage in delete-branch dialog for consistent error UX (anomalyco#19) - Default remoteBranchExists to false while loading to avoid UI flash (anomalyco#20)
tamarazuk
added a commit
to tamarazuk/opencode
that referenced
this pull request
Mar 21, 2026
- Log stderr from gh pr view instead of silently returning undefined (anomalyco#10) - Cap pr-comments pagination at 10 pages to prevent runaway requests (anomalyco#18) - Use resolveApiErrorMessage in delete-branch dialog for consistent error UX (anomalyco#19) - Default remoteBranchExists to false while loading to avoid UI flash (anomalyco#20)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
-pflag-fflag-qflag)Original implementation by @radutopala, adapted and enhanced for the current codebase.
Test plan
opencode -p "Hello, world"to test basic functionalityopencode -p "Hello, world" -f jsonto test JSON outputopencode -p "Hello, world" -qto test without spinner🤖 Generated with opencode