Repository navigation
Commit 2c11186
committed
* feat: simplify agentic loop and fix critical bugs
This PR implements a major refactor and stability overhaul for the agentic loop.
Completed Issues:
- Fixes #5: Memory leak in fire-and-forget promises (implemented BackgroundTasks tracking)
- Fixes #6: Split oversized prompt.ts (extracted session/tools.ts)
- Fixes #7: Add BackgroundTasks test suite
- Fixes #8: Fix silent tool failure in background (added result tracking and events)
- Fixes #9: Add Stream module unit tests (comprehensive coverage)
- Fixes #10: Fix race condition in Remory search (added request tracking)
- Fixes #11: Fix unhandled abort during stream cleanup
- Fixes #12: Implement check_task tool
- Fixes #13: Add config schema validation
- Fixes #14: Upgrade Remory to Unix socket (implemented in socket-client.ts)
- Fixes #16: Fix code style violations
Changes:
- Extracted tool resolution logic to `src/session/tools.ts`
- Implemented `BackgroundTasks` utility for promise tracking
- Added `check_task` tool for polling background tasks
- Upgraded Remory client to use Unix sockets and JSON-RPC
- Added comprehensive tests for Stream and BackgroundTasks
* feat: auto-wakeup agent context and build fixes
* chore: clean up workflows for independent fork
- Remove upstream publishing workflows (npm, vscode, tauri, etc.)
- Change branch references from dev to main
- Keep test, typecheck, and issue management workflows
* docs: replace README with oclite fork documentation
- Add attribution to upstream OpenCode project (MIT requirement)
- Document build-from-source installation
- Explain philosophy: opinionated defaults, agentic workflows, remory integration
- List differences from upstream (no desktop app, VS Code, npm publishing)
- Keep it concise and focused on single developer use case
* docs: add README and release workflow for independent fork
- New README with installation, philosophy, attribution
- GitHub Actions workflow for building/releasing binaries
- Closes #23, closes #24
* feat: lazy load AI SDKs and fix typecheck errors
- Convert 21 AI provider imports to dynamic imports
- Add null checks in github.ts
- Fix task.ts and test type definitions
- Enable minification in build
- Improve TUI activity streaming
* fix: use git toplevel for worktree path (#31)
* fix(session): prevent orphaned task slots blocking allocation (#33)
- Store release_slot callback in TaskMetadata for lifecycle tracking
- Release slot in trackBackgroundTask finally block (handles timeout/crash/abort)
- Fix double-release race in task.ts with slotReleased guard
- Release slot before metadata deletion in cancelBackgroundTask
- Simplify cleanupAllTaskSlots to prevent race with finally blocks
- Add comprehensive AGENTS.md aligned with project standards (#34)
Closes #33
Closes #34
* fix(tool): correct CheckTask error handling and test context
- Use try/catch instead of Promise chaining for Session.get errors
- Add sessionID to test context for proper caller identification
* chore(ci): simplify workflows to essential test suite only
Remove inherited upstream workflows. Keep only basic CI for typecheck and tests.
* fix(ci): run tests from packages/opencode directory
* fix(ci): run tests from correct directory
Previously the ci.yml had incorrect working directory placement,
causing tests to run from root which exits with error code 1.
1 parent 0d22068 commit 2c11186
65 files changed
Lines changed: 6982 additions & 2739 deletions
File tree
- .github/workflows
- packages/opencode
- script
- src
- agent
- cli/cmd
- tui
- component/prompt
- context
- routes/session
- util
- config
- flag
- global
- id
- memory
- project
- provider
- session
- skill
- tool
- util
- test
- config
- core
- skill
- tool
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
This file was deleted.
This file was deleted.
0 commit comments