Skip to content

Conversation

@ulivz
Copy link
Member

@ulivz ulivz commented Oct 13, 2025

Summary

This PR implements workspace environment mismatch detection and warning functionality to address the issue where sessions created in different workspace environments could cause confusion or unexpected behavior.

Problem: When a session was created in a different workspace environment than the current Agent Server workspace, users could still interact with it without knowing that the environment had changed, potentially leading to unexpected results.

Solution:

  • Added useWorkspaceEnvironmentCheck hook to detect workspace mismatches between session and server
  • Created WorkspaceEnvironmentWarning component to display visual warnings when mismatches occur
  • Enhanced ChatInput and ChatPanel to disable input and show preview mode when workspace environments don't match
  • Users can still view conversation history but cannot send new messages when in preview mode

Key Features:

  • Real-time workspace environment comparison
  • Clean, user-friendly warning banner with workspace name comparison
  • Automatic input disabling when mismatch detected
  • Clear preview mode messaging in placeholder text

Checklist

  • Added or updated necessary tests (Optional).
  • Updated documentation to align with changes (Optional).
  • Verified no breaking changes, or prepared solutions for any occurring breaking changes (Optional).
  • My change does not involve the above items.

- Add useWorkspaceEnvironmentCheck hook to detect workspace mismatches
- Add WorkspaceEnvironmentWarning component for visual warnings
- Disable chat input when session workspace differs from server workspace
- Update ChatPanel and ChatInput to handle workspace environment checks
- Show preview mode message when environment mismatch detected
@netlify
Copy link

netlify bot commented Oct 13, 2025

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 236d1b3
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/68ecedb591b41f0008f8528f
😎 Deploy Preview https://deploy-preview-1719--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Oct 13, 2025

Deploy Preview for tarko ready!

Name Link
🔨 Latest commit 236d1b3
🔍 Latest deploy log https://app.netlify.com/projects/tarko/deploys/68ecedb5a4fe900008b11569
😎 Deploy Preview https://deploy-preview-1719--tarko.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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