Skip to content

feat(environments): drop the Publish-as-chatbox panel from the environments page - #3616

Merged
chelojimenez merged 1 commit into
mainfrom
feat/env-page-drop-chatbox-publish
Aug 2, 2026
Merged

feat(environments): drop the Publish-as-chatbox panel from the environments page#3616
chelojimenez merged 1 commit into
mainfrom
feat/env-page-drop-chatbox-publish

Conversation

@chelojimenez

@chelojimenez chelojimenez commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Why

Product decision for the environments launch: chatbox publishing belongs to the Chatbox tab. The environment editor's Publish-as-chatbox panel created a second publish flow whose semantics (live-follow pointer) silently differed from the Chatbox tab's (frozen snapshot) purely based on which page you started from.

What

  • Remove EnvironmentChatboxSection from ProjectEnvironmentsRoute and delete the component + its test.
  • Delete the now-unused client hooks useEnvironmentChatbox / usePublishEnvironmentChatbox / useUnpublishEnvironmentChatbox (no other call sites).
  • Drop the stale section mocks from the two route tests.

Kept: the backend mutations (chatboxes:publishEnvironmentChatbox / unpublishEnvironmentChatbox) and the env-pointer chatbox model are untouched — the intended re-entry point is an environment picker on the Chatbox tab's publish bar (follow-up).

Tests

All 10 project-environments test files pass (73 tests); no typecheck errors in changed files.

🤖 Generated with Claude Code


Note

Low Risk
UI and dead client-hook removal only; no backend or auth changes, though users temporarily lose in-page publish until the Chatbox tab re-entry ships.

Overview
Removes the Publish-as-chatbox flow from the project Environments detail view so chatbox publishing is not offered in two places with different semantics (live-follow on Environments vs snapshot on the Chatbox tab).

EnvironmentChatboxSection is deleted along with its dedicated test file, and ProjectEnvironmentsRoute no longer renders that block (including for non-archived environments). Client-only hooks useEnvironmentChatbox, usePublishEnvironmentChatbox, and useUnpublishEnvironmentChatbox (and EnvironmentChatboxSummary) are removed from useProjectEnvironments.ts because nothing else called them. Route tests drop mocks for the removed section.

Environment editing, archive/restore, and archive-confirm consumer copy (including published chatbox warnings) are unchanged. Backend chatbox mutations and the env-pointer model are out of scope for this diff.

Reviewed by Cursor Bugbot for commit 9c46fdd. Bugbot is set up for automated code reviews on this repo. Configure here.


Summary by cubic

Removed the Publish-as-chatbox panel from the Environments page. Publishing now happens only from the Chatbox tab to avoid two conflicting flows (live-follow vs snapshot).

  • Refactors
    • Removed EnvironmentChatboxSection from ProjectEnvironmentsRoute and deleted the component and its test.
    • Deleted unused hooks: useEnvironmentChatbox, usePublishEnvironmentChatbox, useUnpublishEnvironmentChatbox.
    • Cleaned up route tests by dropping stale publish panel mocks.
    • Kept backend mutations (chatboxes:publishEnvironmentChatbox, chatboxes:unpublishEnvironmentChatbox) for a future environment picker on the Chatbox tab.

Written for commit 9c46fdd. Summary will update on new commits.

Review in cubic

…nments page

Product call for the environments launch: chatbox publishing lives on the
Chatbox tab, not the environment editor. Publishing an environment from its
management page created a second, page-dependent publish flow (live-follow
pointer vs the Chatbox tab's snapshot semantics) that read as incoherent.

Removes the EnvironmentChatboxSection panel, its test, and the now-unused
client hooks (useEnvironmentChatbox / usePublishEnvironmentChatbox /
useUnpublishEnvironmentChatbox). The Convex mutations
(chatboxes:publishEnvironmentChatbox / unpublishEnvironmentChatbox) and the
env-pointer chatbox model stay in the backend — a future Chatbox-tab
environment picker is the intended re-entry point.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Aug 2, 2026
@cursor

cursor Bot commented Aug 2, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_22e5ca30-5525-460a-b0de-bbead9a72538)

@dosubot

dosubot Bot commented Aug 2, 2026

Copy link
Copy Markdown

📄 Knowledge review

Dosu skipped reviewing this PR because your organization has used its 200 included credits for the month. Your usage will reset on 2026-09-01. To have Dosu review this PR before then, ask your organization admin to upgrade to a pro account.


Leave Feedback Ask Dosu about inspector Add Dosu to your team

@chelojimenez

Copy link
Copy Markdown
Contributor Author

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0d02b487-74cd-4453-a465-2d626ae091a2

📥 Commits

Reviewing files that changed from the base of the PR and between 58d54e5 and 9c46fdd.

📒 Files selected for processing (6)
  • mcpjam-inspector/client/src/components/project-environments/ProjectEnvironmentsRoute.tsx
  • mcpjam-inspector/client/src/components/project-environments/__tests__/archive-consumer-counts.test.tsx
  • mcpjam-inspector/client/src/components/project-environments/__tests__/environment-chatbox-section.test.tsx
  • mcpjam-inspector/client/src/components/project-environments/__tests__/project-environments-route.seed.test.tsx
  • mcpjam-inspector/client/src/components/project-environments/environment-chatbox-section.tsx
  • mcpjam-inspector/client/src/hooks/useProjectEnvironments.ts
💤 Files with no reviewable changes (6)
  • mcpjam-inspector/client/src/components/project-environments/tests/environment-chatbox-section.test.tsx
  • mcpjam-inspector/client/src/components/project-environments/tests/project-environments-route.seed.test.tsx
  • mcpjam-inspector/client/src/components/project-environments/environment-chatbox-section.tsx
  • mcpjam-inspector/client/src/components/project-environments/tests/archive-consumer-counts.test.tsx
  • mcpjam-inspector/client/src/hooks/useProjectEnvironments.ts
  • mcpjam-inspector/client/src/components/project-environments/ProjectEnvironmentsRoute.tsx

Walkthrough

The change removes environment chatbox publishing from the client. It deletes the environment chatbox summary and related read, publish, and unpublish hooks. It removes the publish-as-chatbox section from environment details. Archive and restore controls remain. Related component tests and mocks are deleted or updated.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 6 files

Re-trigger cubic

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Archive “{environment.name}”? {referenceSummary} Referencing

P1 Badge Keep existing environment chatboxes manageable

For any environment published before this version, removing this panel and the only client callers of unpublishEnvironmentChatbox leaves its live share link—including an anyone-with-link URL—active with no UI for changing access or revoking it. The current ChatboxesTab is not a replacement: it selects hosts and loads useChatboxByHostId, while environment-backed rows expose their named-host fields as display-only. Retain management controls until the planned Chatbox-tab environment picker lands, or existing owners must archive the entire environment (disrupting suites and journeys) merely to stop the link.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chelojimenez
chelojimenez merged commit 5ad7623 into main Aug 2, 2026
13 of 14 checks passed
@chelojimenez
chelojimenez deleted the feat/env-page-drop-chatbox-publish branch August 2, 2026 04:36
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Internal preview

Preview URL will appear in Railway after the deploy finishes.
Deployed commit: e5503f9
PR head commit: 9c46fdd
Backend target: staging fallback.
Access is employee-only in non-production environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant