Skip to content

fix(workspace): isolate channel connect workspace targets - #1659

Merged
realcodesiman merged 4 commits into
mainfrom
fix/channel-connect-workspace-target
Nov 6, 2026
Merged

realcodesiman merged 4 commits into
mainfrom
fix/channel-connect-workspace-target

Conversation

@realcodesiman

Copy link
Copy Markdown
Contributor

Summary

  • reuse only empty workspaces for replayed channel connections
  • preserve existing first-workspace behavior outside channel connection
  • cover service, route, and repository selection behavior

Verification

  • pnpm lint
  • pnpm --filter builder check-types
  • pnpm --filter @chatbotx.io/business check-types
  • pnpm --filter @chatbotx.io/database check-types
  • VITEST_MAX_WORKERS=1 pnpm --filter builder exec vitest run tests/channels-create-messenger-reuse.test.ts tests/channels-instagram-routes.test.ts tests/create-first-workspace.test.ts
  • VITEST_MAX_WORKERS=1 pnpm --filter @chatbotx.io/business exec vitest run tests/workspace-ensure-first-for-owner.test.ts

Not run

  • Database integration test was skipped because no real database URL is configured.

@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 6, 2026
@realcodesiman
realcodesiman merged commit abc0d4b into main Nov 6, 2026
14 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
* fix(workspace): isolate channel connect workspace targets

* fix(workspace): index channel connection target lookups

* fix(workspace): retain advisory lock through creation

* test(database): remove indexed workspace owner relation from legacy allowlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant