Skip to content

fix(plugins): count custom agents when reloading without cwd - #303

Open
Wenyan0315 wants to merge 1 commit into
GoDiao:mainfrom
Wenyan0315:fix/plugin-reload-agent-count
Open

Wenyan0315 wants to merge 1 commit into
GoDiao:mainfrom
Wenyan0315:fix/plugin-reload-agent-count

Conversation

@Wenyan0315

Copy link
Copy Markdown
Contributor

Summary

  • fall back to the current working directory when a plugin reload has no explicit cwd
  • keep missing cwd from reducing the reload agent count to built-in agents
  • add an API regression test for counting a newly added user agent without cwd

Tests

  • bun test — 3,425 passed across 237 files
  • bun test --randomize --seed=1 src/server/__tests__/plugins.test.ts — 6 passed
  • cd desktop && bun run lint
  • cd desktop && bun run test -- --run — 3,139 passed, 4 skipped across 238 files

Closes #301

This branch has not been deployed

No deployments
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.

Plugin reload without an active session leaves custom agents out of the count

1 participant