[#319] 🐛 - Setup crash on repository with no issues#320
[#319] 🐛 - Setup crash on repository with no issues#320efraespada wants to merge 5 commits intodevelopfrom
Conversation
…bel fetching error handling and add new documentation files for agent context.
…S constant and replace the 'initial_setup' string literal with `ACTIONS.INITIAL_SETUP`.
…_AGENT_PLAN` constant to 'build' to enable diff support.
|
To view this pull requests documentation preview, visit the following URL: Documentation is deployed and generated using docs.page. |
🐛 Bugfix Actions
Debug log🚀 Happy coding! Made with ❤️ by vypdev/copilot |
|
|
||
| /** Default OpenCode agent for analysis/planning (read-only, no file edits). */ | ||
| export const OPENCODE_AGENT_PLAN = 'plan'; | ||
| /** Default OpenCode agent for analysis/planning (read-only, no file edits). Changed to build to support diffs. */ |
There was a problem hiding this comment.
Duplicated OpenCode agent constants
Severity: high
Location: src/data/repository/ai_repository.ts:233
OPENCODE_AGENT_PLAN and OPENCODE_AGENT_BUILD both have the value 'build'. This duplication can be confusing and may lead to misconfiguration or incorrect agent usage in code paths that rely on these two constants to denote different roles.
Suggested fix:
Consolidate or clearly differentiate PLAN and BUILD agent identifiers, and update references accordingly. Consider adding a short comment clarifying intended distinction.
Written by vypdev/copilot for commit 89b267bd54a6224cbaca6bd566df2652c1ccb858. This will update automatically on new commits.
There was a problem hiding this comment.
Yes, the constant values for the two agent modes have been duplicated, and both currently include the build parameter/value.
This will remain as-is for testing purposes. Some models are able to compute differences between branches using plan mode, while others — for example, certain GPT models — seem to only compute branch differences correctly when using build mode rather than plan.
We’ll keep this setup in order to test different models and compare their behavior.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #320 +/- ##
===========================================
+ Coverage 88.82% 90.89% +2.07%
===========================================
Files 134 135 +1
Lines 5941 6183 +242
Branches 1272 1325 +53
===========================================
+ Hits 5277 5620 +343
+ Misses 250 170 -80
+ Partials 414 393 -21
🚀 New features to boost your workflow:
|
…ndling and test coverage for label and issue type related operations.

Summary
Related Issues
Scope of Changes
Technical Details
How to Test
Test Coverage
Deployment Notes
Security
Performance
Breaking Changes
Notes for Reviewers / Additional Context
- This change ensures a more robust setup flow across repositories with varying issue states.
- If there are other edge cases around repository state assumptions (e.g., permissions), those can be evaluated in follow-up PRs.
\n\nRespond with a single JSON object: { \"progress\": , \"summary\": \"\", \"remaining\": \"\" }.\n[DEBUG] OpenCode prompt (full, no truncation):\nRespond with a single JSON object that strictly conforms to this schema (name: progress_response). No other text or markdown.\n\nSchema: {\"type\":\"object\",\"properties\":{\"progress\":{\"type\":\"number\",\"description\":\"Completion percentage 0-100\"},\"summary\":{\"type\":\"string\",\"description\":\"Short explanation of the assessment\"},\"remaining\":{\"type\":\"string\",\"description\":\"When progress < 100: what is left to do to reach 100%. Omit or empty when progress is 100.\"}},\"required\":[\"progress\",\"summary\"],\"additionalProperties\":false}\n\nUser request:\nYou are in the repository workspace. Assess the progress of issue #319 using the full diff between the base (parent) branch and the current branch.\n\n**Important – use full project context:** In addition to reading the relevant code (respecting any file ignore patterns specified), read the repository documentation (e.g. README, docs/) and any defined rules or conventions (e.g. .cursor/rules, CONTRIBUTING, project guidelines). This gives you a complete picture of the project and leads to better decisions in both quality of reasoning and efficiency.\n\n**Branches:**\n- **Base (parent) branch:** `develop`\n- **Current branch:** `bugfix/319-setup-crash-on-repository-with-no-issues`\n\n**Instructions:**\n1. Get the full diff by running: `git diff develop..bugfix/319-setup-crash-on-repository-with-no-issues` (or `git diff develop...bugfix/319-setup-crash-on-repository-with-no-issues` for merge-base). If you cannot run shell commands, use whatever workspace tools you have to inspect changes between these branches.\n2. Optionally confirm the current branch with `git branch --show-current` if needed.\n3. Based on the full diff and the issue des\n\n[... truncated for length ...]",}
copilot-configuration-end -->