Skip to content

feat(team): participant agent ID mapping and task workflow refactor#196

Merged
RussellLuo merged 6 commits into
OpenCSGs:mainfrom
jialudev:feat/agent-teams-0609
Jun 10, 2026
Merged

feat(team): participant agent ID mapping and task workflow refactor#196
RussellLuo merged 6 commits into
OpenCSGs:mainfrom
jialudev:feat/agent-teams-0609

Conversation

@jialudev

@jialudev jialudev commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator
  • Use agent IDs as the public team/participant identifier, with internal mapping to stable participant IDs and backward-compatible API fields.
  • Move team/task planner, workflow, and execution-room logic from the API layer into internal/team.
  • Improve task execution room setup and event/task views in the web UI.

jialudev added 3 commits June 10, 2026 19:38
- Introduced `normalizeTeamActorID` function to standardize actor IDs, replacing "web" with the lead bot ID when necessary.
- Updated event types in the service to use constants instead of string literals for better maintainability.
- Added `ListGlobalTaskViews` method to provide a view of tasks with associated team and room titles.
- Implemented `PlanTaskWithOptionalStart` and `StartTaskWithExecutionRoom` workflows to streamline task planning and execution room management.
- Enhanced team creation with room functionality in `CreateTeamWithRoom`.
- Updated API calls in the frontend to handle undefined actor IDs instead of defaulting to "web".
- Revised documentation in skill templates to clarify task claiming instructions and ignore irrelevant messages.
- Updated the team management logic to use agent IDs instead of participant IDs.
- Introduced new functions for handling agent IDs and their corresponding participant IDs.
- Modified the data structures and API requests to accommodate the changes in ID handling.
- Updated tests to reflect the new agent ID usage in team creation and management.
- Ensured backward compatibility by allowing both lead_agent_id and lead_participant_id in API requests.
@jialudev

jialudev commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author
image image

@jialudev jialudev requested a review from RussellLuo June 10, 2026 12:12
runtime_kind = "picoclaw_sandbox"
updated_at = "2026-05-27T00:00:00Z"
version = "0.1.0"
version = "0.1.2"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.1.1?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

runtime_kind = "openclaw_sandbox"
updated_at = "2026-06-10T06:59:28Z"
version = "0.1.3"
version = "0.1.5"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.1.4?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@RussellLuo RussellLuo merged commit 977420c into OpenCSGs:main Jun 10, 2026
1 check passed
@jialudev jialudev deleted the feat/agent-teams-0609 branch June 12, 2026 06:58
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.

2 participants