Skip to content

feat: report activity for agent instances - #34

Merged
vitramir merged 1 commit into
mainfrom
feat/chat-instance-activity
Aug 2, 2026
Merged

vitramir merged 1 commit into
mainfrom
feat/chat-instance-activity

Conversation

@vitramir

@vitramir vitramir commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

T4 of the agent-instances change.

Chat recognised only IDENTITY_TYPE_AGENT participants and asked what they were doing with ListWorkloadsByThread. Two consequences:

  • an agent instance on a thread showed no activity at all — it was skipped as a participant
  • a class-scoped lookup returns every instance of that class on the thread, so one instance's work was reported as another's

Instance participants are now recognised, and asked about with ListWorkloadsByAgentInstance — workloads belong to instances, so that is the question with a single answer.

The committed identity protos were stale. gen/ here is gitignored apart from six force-added files, and those predated IDENTITY_TYPE_AGENT_INSTANCE — the enum did not exist in this repo at all. Regenerated.

Both runners fakes now embed the generated client instead of restating it, so the next RPC added upstream does not break this repo's build.

A test asserts an instance participant is never looked up through its thread — it fails the moment the lookup goes via ListWorkloadsByThread. Unit tests and go vet clean; the 25 test/e2e failures are pre-existing on main (they need a database).

Chat only recognised participants of type AGENT, and asked what they were
doing with ListWorkloadsByThread. Workloads belong to agent instances, so
an instance on a thread showed no activity at all, and a class lookup
returns every instance of it on that thread rather than the one asked
about.

Instance participants are now recognised and asked about directly.

The committed identity protos were regenerated with them: they predated
IDENTITY_TYPE_AGENT_INSTANCE, so the enum did not exist here. The runners
fakes embed the generated client rather than restating it.
@vitramir
vitramir merged commit 060b79e into main Aug 2, 2026
1 check passed
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