fix(workspaces): empty state + disabled input when workspace has no harness#62
Merged
Merged
Conversation
…arness Previously, selecting a workspace with no harness attached rendered the generic EmptyChat plus a fully interactive ChatInput whose handleSend silently no-oped — the user could type and click send with no feedback. Adds a dedicated NoHarnessAttachedState screen that names the workspace and CTAs into the existing edit-workspace dialog (plumbed through WorkspaceSidebar via pendingEditWorkspaceId), and disables the chat textarea + send button with a context-aware placeholder when no harness is attached (or no workspace is selected).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EmptyChatplus a fully interactiveChatInputwhosehandleSendsilently no-oped — the user could type and click send with no feedback.NoHarnessAttachedStatescreen that names the active workspace and provides an "Attach a harness" CTA. The CTA opens the existing edit-workspace dialog (where the harness selector already lives) by plumbing apendingEditWorkspaceIdrequest throughWorkspaceSidebar.!activeHarness, with a context-aware placeholder:Files
apps/web/src/routes/workspaces/index.tsxNoHarnessAttachedStatescreen (mirrors the visual language ofEmptyWorkspaceState, uses theWrenchicon)!activeWorkspace → EmptyWorkspaceState,!activeHarness → NoHarnessAttachedState, else conversation/empty-chatChatInputgainsdisabledandplaceholderprops; both wired into the textarea and send buttonWorkspaceSidebargainspendingEditWorkspaceId/onPendingEditConsumedprops and a small effect that opens the rename dialog when triggered externallyTest plan
!activeWorkspacepath (EmptyWorkspaceStatestill renders, input shows "Select a workspace to start chatting")