Skip to content

fix(agents-squad): resolve parent session ID from context - #241

Open
teksrq wants to merge 1 commit into
cline:mainfrom
teksrq:fix/agents-squad-parent-session-id
Open

teksrq wants to merge 1 commit into
cline:mainfrom
teksrq:fix/agents-squad-parent-session-id

Conversation

@teksrq

@teksrq teksrq commented Nov 17, 2026

Copy link
Copy Markdown

Summary

Fixes parent session ID resolution in the Agent Squad plugin.

Problem

The parentSessionId() helper reads ctx.metadata?.sessionId, but Cline's AgentToolContext exposes sessionId at the top level.

When the metadata property is absent, the plugin fails to resolve the parent session ID, preventing child completion notifications from being delivered to the parent session.

Changes

Updated parentSessionId() to prefer ctx.sessionId, retaining ctx.metadata?.sessionId as a fallback.

Validation

  • npm run validate — passed.
  • git diff --check — passed.
  • TypeScript typecheck could not run: tsc is not installed, and the plugin's tsconfig.json extends a root tsconfig.json that is absent from this repository checkout.
  • Runtime verification: the correction was tested in a Cline installation. A child completion notification appeared in the parent session transcript, and a subsequent real multi-agent workflow completed successfully.

Only plugins/agents-squad/index.ts was changed.

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