-
Notifications
You must be signed in to change notification settings - Fork 94
OpenCode - Initial Implementation #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a498b91
to
963c5d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements OpenCode, a complete redesign of the terminal AI experience with significant improvements in UI, performance, and functionality. Key changes include a revamped chat-based TUI, enhanced diff/patch visualization, and improved LSP integration along with file history and memory optimizations.
Reviewed Changes
Copilot reviewed 110 out of 116 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
internal/db/querier.go | Added new querier methods for file, session, and message management. |
internal/db/models.go | Introduced a new File model and extended Message fields. |
internal/db/messages.sql.go | Updated SQL queries and Scan invocations to support additional fields. |
internal/db/files.sql.go | Generated SQL statements for file management. |
internal/db/db.go | Prepared and closed new SQL statements; updated error messages. |
internal/db/connect.go | Updated the DB connection logic and migrated from termai to opencode. |
internal/app/* | Removed legacy services and introduced new LSP and app implementations. |
cmd/schema/* | Added schema generation tool and updated related documentation. |
cmd/root.go | Updated command-line interface and subscriptions to support new features. |
README.md & LICENSE | Updated branding, configuration details, and licensing. |
Files not reviewed (6)
- .opencode.json: Language not supported
- .termai.json: Language not supported
- go.mod: Language not supported
- internal/db/migrations/000001_initial.down.sql: Language not supported
- internal/db/migrations/000001_initial.up.sql: Language not supported
- internal/db/sql/files.sql: Language not supported
Comments suppressed due to low confidence (2)
internal/db/connect.go:34
- [nitpick] Consider using an Info-level log for a successfully applied pragma rather than Warn, to better reflect that this is a normal operational message.
logging.Warn("Set pragma", "pragma", pragma)
cmd/root.go:183
- [nitpick] For consistency with structured logging throughout the codebase, replace the format string with key-value pairs (e.g., logging.Info("subscription channel closed", "name", name)).
logging.Info("%s subscription channel closed", name)
Merging this so we have the info in the main branch. |
OpenCode - A New Terminal AI Experience
Summary
This PR introduces OpenCode, a complete redesign of the terminal AI experience with significant improvements to the UI, performance, and functionality:
Technical Changes
Removed
TODO:
Hide the logs view for nowUpdated to the new lookPushed After Release