Repository navigation
Conversation
…Bug 1) opencode >= 2.0.4 removed the permission.rules plugin API; every team_spawn threw 'ctx.permission.rules is not a function' (issue hueyexe#40 Bug 1, ENSEMBLE-COMPATIBILITY.md). Feature-detect the call and skip the re-assert when absent — session.create permissions still travel, only the post-create re-assert that restored team tools for read-only agents is omitted on 2.x (documented tradeoff; agent rules still win there). Adds a regression test that fails on main and passes here (PR hueyexe#41). Co-Authored-By: internal-model
…Bug 2) worktree.create failures were downgraded to a TUI toast the lead never saw — the tool returned 'spawned (branch:)' only when isolation actually happened, leaving shared-directory teammates looking isolated. Append a WARNING to the tool result when useWorktree && !worktreeBranch so the lead sees 'shares your working directory' in the transcript. Adds two regression tests that fail on main (PR hueyexe#41). Co-Authored-By: internal-model
A typo in depends_on used to create a permanently blocked task that claim and complete both reject, with no tool to edit it — only purge freed it. Validate every depends_on id against the current team before inserting anything; reject the whole call listing unknown ids and insert nothing. Scoped by team_id so cross-team ids are rejected too (PR hueyexe#41). Co-Authored-By: internal-model
…yexe#40 Bug 4) Teammates in shutdown that were still alive when team_cleanup --purge deleted the team kept firing notifyLead -> session.promptAsync synthetic wakes to the lead, showing '[System: New team message from alpha]' on repeat with team_message already empty. Guard notifyLead to no-op when team.status != 'active' (archived or purged) so no wake or persist happens after purge. handleSessionStatusEvent already ignores archived teams; this closes the active-wake leak. Adds 7 regression tests. Co-Authored-By: internal-model
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.
What
Shows open tasks and assignments in the TUI/terminal sidebar and scopes TUI lookups to the displayed session location. Adds root entrypoints (
index.ts/tui.tsx) for local OpenCode plugin loading and fixes 4 reviewed V2 issues fromissue #40.Why
Triaging without seeing
openTasks+ assignee in the sidebar forces extra RPC navigation. TUI was resolving team context from the wrong project when session/companion location was missing. Local checkout loading also lacked root entrypoints, andctx.permission.rules/ worktree fallback / task deps had degraded behavior on OpenCode 2.x.How
src/tui-context.ts,src/tui-view.ts,src/tui.tsx,src/rpc.ts: add open-task + assignment rendering, bound density, loading/error states for sidebar; location-scoped team lookup.src/v2-client.ts,src/v2-setup.ts: makepermission.rulesoptional with explicit degraded-host warning; expose 9 member tools correctly under read-only agents.src/tools/team-tasks-add.ts: validatedepends_onatomically; surface worktree fallback inteam_spawnresult.src/notify.ts,docs/VALIDATION.md: guard archived nudges and record local plugin activation.index.ts,tui.tsx,package.json,tsconfig.json: expose entrypoints for local plugin discovery.Verification
bun run typecheck && bun test && bun run build— green on branch tipfd61d25. New tests:test/local-entrypoints.test.ts,test/tui-context.test.ts,test/tui-view.test.ts,test/v2-client.test.ts,test/v2-setup.test.ts,test/purge-notifications.test.ts.Risk
Low. TUI-only and validated fixes; no schema migration. Rollback: revert branch. Docs change is additive.