Skip to content

feat: topology Phase 2, git branch and subagent task on cards - #87

Merged
DowLucas merged 1 commit into
mainfrom
feat/topology-identity
Oct 7, 2026
Merged

DowLucas merged 1 commit into
mainfrom
feat/topology-identity

Conversation

@DowLucas

@DowLucas DowLucas commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Summary

Phase 2 of the Topology improvements: tell sessions and subagents apart. Stacked on #86.

API

  • Migration 057_sessions_git_branch.sql: sessions.git_branch, captured from the session.start payload's gitBranch (already sent by the plugin), never for private sessions, COALESCEd on later starts.
  • /api/sessions/active returns gitBranch, and each activeAgents entry now carries description and model from agent.start (plugin 0.31.0+, DowLucas/devscope-plugin PR). Activity-only viewers still get an empty agent list, so descriptions stay private. gitBranch is not in the activity allowlist.
  • AgentEventPayload and the strict schema gain description, model (plus the already-sent lastMessageLength, transcriptPath).

Dashboard

  • Session cards show the branch (monospace, with icon) instead of the developer name the parent node already shows.
  • Subagent cards show the task description and the model (falls back to the short agent id).
  • Landing demo gets branches and a described subagent.

Test Coverage

  • New: gitBranch passed to createSession; dropped for a private session.start; agent description/model returned for own sessions and hidden for activity-only sessions. Existing exact-argument tests updated.
  • bun test: 0 fail. Dashboard: tsc -b, eslint, vite build.
  • Manual: migration ran on the local stack; posted session.start + agent.start and /api/sessions/active returned the branch and the agent's description/model.

🤖 Generated with Claude Code
DevScope-Session: 7ed92b1f-21e5-4a3b-b933-e2ce8af3a7ee

- migration 057 adds sessions.git_branch, captured from session.start
  (not for private sessions) and kept across resumes without a branch
- /api/sessions/active returns gitBranch and each agent's description
  and model (plugin 0.31.0+); agent payload type and schema updated
- session cards show the branch instead of the repeated developer name;
  subagent cards show the task and model

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DevScope-Session: 7ed92b1f-21e5-4a3b-b933-e2ce8af3a7ee
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1339dd5d-6323-4a40-89cf-8a7841b9e12b
📥 Commits

Reviewing files that changed from the base of the PR and between 42e904e and 471eb23.

📒 Files selected for processing (17)
  • CHANGELOG.md
  • packages/backend/src/db/migrations/057_sessions_git_branch.sql
  • packages/backend/src/db/queries.ts
  • packages/backend/src/routes/__tests__/events.test.ts
  • packages/backend/src/routes/__tests__/sessions.test.ts
  • packages/backend/src/routes/events.ts
  • packages/backend/src/routes/sessions.ts
  • packages/backend/src/utils/eventSchemas.ts
  • packages/dashboard/src/components/flow/AgentNode.tsx
  • packages/dashboard/src/components/flow/SessionNode.tsx
  • packages/dashboard/src/components/flow/flowTypes.ts
  • packages/dashboard/src/components/flow/useFlowLayout.ts
  • packages/dashboard/src/components/landing/demoTopologyData.ts
  • packages/dashboard/src/hooks/useWebSocket.ts
  • packages/dashboard/src/stores/activityStore.ts
  • packages/shared/src/events.ts
  • packages/shared/src/models.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DowLucas
DowLucas deleted the branch main October 7, 2026 20:37
@DowLucas DowLucas closed this Oct 7, 2026
@DowLucas DowLucas reopened this Oct 7, 2026
@DowLucas
DowLucas changed the base branch from feat/topology-status to main October 7, 2026 20:38
@DowLucas
DowLucas merged commit c6473ff into main Oct 7, 2026
2 checks passed
@DowLucas
DowLucas deleted the feat/topology-identity branch October 7, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant