-
Notifications
You must be signed in to change notification settings - Fork 1
feat: GitHub issue plugin + telegram fixes #44
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
Merged
Merged
+3,020
−2,675
Conversation
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
Add a new reflection-static.ts plugin that uses a simpler approach: 1. Ask the agent a static self-assessment question when session idles 2. Use GenAI judge to analyze the agent's response 3. If agent confirms completion → toast notification, no feedback loop 4. If agent identifies improvements → push to continue Features: - Simple self-assessment question: "What was the task? Are you sure you completed it?" - GenAI-powered analysis of agent's self-assessment - Prevents infinite feedback loops by tracking confirmed completions - Tracks aborted sessions to skip reflection - E2E test that verifies plugin effectiveness (scored 5/5) New npm scripts: - test:reflection-static: Run E2E evaluation test - install:reflection-static: Deploy reflection-static instead of reflection.ts
- Add multiple abort detection layers (session.error, message.aborted) - Add delay before reflection to allow abort events to arrive - Check if last message was aborted/incomplete in runReflection - Remove mock evaluation fallback - require real Azure LLM - Use AZURE_OPENAI_DEPLOYMENT env var for eval model
- Change from Set to Map with timestamps for abort tracking - Add 10 second cooldown period after Esc press - Add type cast for error property to fix TypeScript error - Separate completed check from error check for clearer debugging - Match pattern from reflection.ts for consistent behavior
- telegram.ts was incorrectly placed in lib/ subdirectory (not loaded as plugin) - Fix: deploy telegram.ts directly to ~/.config/opencode/plugin/ - Fix isSessionComplete to check completed timestamp (same as tts.ts) - Remove install:global, add individual install scripts per plugin - Update plugin-load.test.ts for new deployment pattern - Improve reflection-static.ts analysis prompt to be stricter about completion Fixes telegram notifications not being sent since commit d10a8f5
Telegram plugin fixes: - Changed plugin initialization to non-blocking (setTimeout instead of await) - Fixed Whisper endpoint from /transcribe to /transcribe-base64 send-notify function fix: - Fixed placeholder leak by using null bytes instead of underscores Test consolidation: - Deleted redundant test files (telegram-e2e-real.ts, telegram-forward-e2e.test.ts, test-telegram-whisper.ts) - Consolidated 17 real integration tests in test/telegram.test.ts - All tests use real Supabase (no mocks) Documentation updates: - Added warnings about pkill and deployment - Updated AGENTS.md with test requirements - Updated plan.md with status All tests pass: typecheck (0 errors), unit (130), plugin-load (5)
- Posts agent messages to associated GitHub issues as comments - Auto-detects issues from: URL in first message, .github-issue file, PR's closingIssuesReferences, branch name conventions - Configurable via ~/.config/opencode/github.json - Batches messages (5s interval) to avoid API rate limits - Optional: create new issue if none found - 18 unit tests for URL parsing, branch detection, message formatting
- Add github.ts to available plugins list - Document all configuration options with table format - Add .github-issue file format examples - Add branch name pattern documentation - Add debug logging instructions - Update deployment instructions to include github.ts - Update plan.md to mark all tasks complete
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
New: GitHub Issue Integration Plugin (
github.ts).github-issuefile, PR's closingIssuesReferences, branch name conventions~/.config/opencode/github.jsonTelegram Plugin Fixes
/transcribe→/transcribe-base64Test Consolidation
test/telegram.test.tsTest Results
Files Changed
github.tstest/github.test.tstelegram.tssupabase/functions/send-notify/index.tstest/telegram.test.tsAGENTS.md