Skip to content

bb/update prompt box blockquotes thr di9ekcpsru - #203

Merged
brsbl merged 54 commits into
mainfrom
bb/update-prompt-box-blockquotes-thr_di9ekcpsru
Jun 18, 2026
Merged

brsbl merged 54 commits into
mainfrom
bb/update-prompt-box-blockquotes-thr_di9ekcpsru

Conversation

@brsbl

@brsbl brsbl commented Jun 17, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

This branch is a UX/parity pass across prompt composition, side chats, timeline actions, browser/link handling, forking, and sidebar navigation.

Final Changes

Prompt Box

  • Blockquotes can be exited with repeated Shift+Enter, and users can place text above an existing quote.
  • Prompt-box URLs no longer activate or open the browser while editing.
  • Skill and command argument hint placeholders are hidden in the prompt editor.
  • Skill typeahead matches direct skill names, e.g. review can match ottonomous:review.
  • Prompt mention pills have tighter icon/name spacing.

Side Chats

  • Side chat tabs open as draft surfaces and provision on the first user message, matching normal thread start behavior.
  • Side chat composers use the normal follow-up affordances: file/thread mentions, attachments, provider command typeahead, queueing, steering, and stop while running.
  • Side chat timelines use the canonical thread timeline renderer and bottom-anchor behavior, so scrolling, queued messages, agent rows, working/thinking rows, and action bars stay aligned with regular threads.
  • Side chats preserve preloaded child threads across tab/panel unmounts and can revive retiring personal workspaces.
  • Confusing waiting/empty states and agent-only queued-message prefixes were removed.
  • The user-facing “Send to main thread” action remains under side-chat agent messages.
  • The agent-facing send-to-main dynamic tool and Codex plumbing were removed; agents no longer get an internal main-thread handoff tool.
  • Side chats deny command/file/permission approval prompts server-side, avoiding read-only approval dead ends.

Timeline

  • Message selection toolbar only shows the relevant “Add to chat” action in side chat contexts.
  • Selection toolbar waits for pointer release, and double/triple-click selections are handled directly from the selected message target.
  • Tooltips avoid side-panel collisions.
  • Timeline buttons consistently use pointer cursors.
  • Assistant action footers keep sane spacing, and mobile/coarse-pointer layouts use the existing overflow menu pattern.
  • Queued-message previews are one-line, truncated, quote-aware, and preserve scroll position when queued.
  • Markdown file references render as links instead of inline code.
  • Codex subagent messages are nested/collapsed like Claude Code, reducing jumpiness while streaming.

Browser And Links

  • Browser content unmounts behind app modals and remounts to its prior page after close.
  • Browser “server cannot be reached” state is styled as an app state instead of an error-looking browser failure.
  • Trusted app/localhost timeline links open in the in-app browser instead of being blocked or ignored.
  • Cmd+T on macOS and Ctrl+T on Windows open the new browser tab page from an active thread.

Forking

  • Forking now opens a normal draft composer first instead of eagerly provisioning.
  • Fork composers lock to the source provider.
  • Fork prompts show a Forking [thread name] pill for confirmation.
  • The normal “reuse worktree” prompt pill was removed where existing worktree controls already provide confirmation.

Sidebar

  • Restored project/worktree row affordances and managed-worktree thread icons.
  • Sidebar selected-row color uses the lighter token state.
  • Sidebar caret placement now matches main: row icon/title first, disclosure caret after the row label, with expanded carets hover-revealed.
  • QA fixtures exist in the dev environment for one solo managed-worktree thread and two threads sharing one managed worktree.

Validation

  • pnpm exec turbo run test --filter=@bb/server -- thread-runtime-config.test.ts internal-events-tool-calls.test.ts internal-interactive-requests.test.ts
  • pnpm exec turbo run test --filter=@bb/agent-runtime -- runtime.lifecycle.test.ts
  • pnpm exec turbo run test --filter=@bb/app -- SideChatTabContent.test.tsx
  • pnpm exec turbo run test --filter=@bb/app -- ThreadRow.test.tsx ProjectRow.test.ts
  • pnpm exec turbo run test --filter=@bb/app -- SelectableMessageProse.events.test.tsx SelectableMessageProse.test.ts TimelineSelectionMenu.test.tsx
  • pnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/agent-runtime --filter=@bb/app
  • pnpm exec turbo run typecheck --filter=@bb/app
  • pnpm exec prettier --check apps/app/src/components/secondary-panel/SideChatTabContent.test.tsx apps/server/src/internal/interactive-requests.ts apps/server/src/internal/tool-calls.ts apps/server/src/services/threads/side-chat-thread.ts apps/server/src/services/threads/thread-runtime-config.ts apps/server/test/internal/internal-events-tool-calls.test.ts apps/server/test/threads/thread-runtime-config.test.ts packages/agent-runtime/src/runtime.lifecycle.test.ts packages/agent-runtime/src/runtime.ts
  • pnpm exec prettier --check apps/app/src/components/sidebar/AppSidebar.tsx apps/app/src/components/sidebar/ProjectList.tsx apps/app/src/components/sidebar/ProjectRow.tsx apps/app/src/components/sidebar/SidebarChildToggleChevron.tsx apps/app/src/components/sidebar/ThreadRow.test.tsx apps/app/src/components/sidebar/ThreadRow.tsx apps/app/src/components/sidebar/sidebarRowClasses.ts apps/app/src/components/ui/theme.css
  • pnpm exec prettier --check apps/app/src/components/thread/timeline/SelectableMessageProse.tsx apps/app/src/components/thread/timeline/SelectableMessageProse.events.test.tsx
  • git diff --check

brsbl added 30 commits June 17, 2026 02:05
@brsbl

brsbl commented Jun 17, 2026 •

Copy link
Copy Markdown
Collaborator Author

Side chat behavior model in this branch

Side chats are closer to regular threads in runtime and timeline behavior, with a few intentional constraints because they are anchored reply surfaces rather than independent task threads.

Works like a regular thread

  • Draft-first start: opening a side chat creates a draft surface only. The child side-chat thread is created/provisioned on the first user submit, matching the normal “compose, then start” flow.
  • Prompt composer affordances: side chats use the normal follow-up composer stack for file/thread mentions, attachments, and provider command typeahead. Submitted side-chat prompts preserve the full prompt input array, including uploaded files.
  • Running-state composer behavior: once a side-chat child thread exists, active/running side chats use the same submit-mode model as regular threads: submit queues, modifier-submit steers, and the submit button becomes a stop affordance.
  • Queued messages: side chats use normal queued-message APIs and queue UI for active/provisioning/running states.
  • Timeline scroll behavior: the side-chat transcript uses the same bottom-anchored scroll body and conversation wrapper shape as regular threads, including remounting around the concrete child threadId once it exists.
  • Timeline rendering: side chats reuse the canonical ThreadTimelineRows renderer, so agent messages, work rows, thinking/working indicators, selection actions, and send-to-main actions stay visually consistent.
  • Runtime continuation: existing side-chat turns resume through the same thread runtime path as regular threads, but without any side-chat-specific agent handoff tool.
  • Lifecycle persistence: existing/preloaded side chats survive panel/tab unmounts, and side chats can revive retiring personal workspaces.

Intentionally special

  • Anchored context: a side chat is source-derived from a main thread and can clone/fork provider history to the selected point. It keeps a visible “Replying to” quote in the side panel.
  • Read-only permission: side chats are always created with readonly permission. The UI shows the normal execution controls, but disabled/read-only, so the displayed permission matches the actual runtime permission.
  • No permission escalation: the server denies command, file-change, and permission approval prompts for side-chat threads. This prevents read-only side chats from getting stuck waiting for approvals the side-chat UI should not handle.
  • No child spawning from side chats: side-chat timelines do not expose fork/reply-in-side-chat actions. They can hand content back to the main thread, but they are not a place to branch further.
  • User-driven send-to-main: side chats keep the per-message “Send to main thread” UI action. The agent-facing bb_send_to_main_thread dynamic tool and Codex plumbing were removed because that path was brittle.
  • Workspace inheritance: side chats inherit/derive workspace context from the source thread. They remain same-project/source-derived rather than acting like arbitrary new-root thread creation.

QA implications

  • A new side chat should open immediately with an empty/draft composer and should not provision until the first send.
  • The side-chat composer should allow @ mentions, file attachments, and provider command typeahead like a regular follow-up composer.
  • While the side-chat agent is running, normal submit should queue and modifier-submit should steer.
  • The side-chat transcript should stay pinned to bottom like a regular thread unless the user scrolls away.
  • The user-facing “Send to main thread” button under side-chat agent messages should post the selected message back to the main timeline.
  • Asking the side-chat agent itself to message the main thread is no longer supported; no dynamic tool should be exposed for that.
  • If a side-chat agent attempts a write/permission escalation, it should be denied by runtime policy rather than leaving the thread stuck waiting for approval UX.

@brsbl
brsbl force-pushed the bb/update-prompt-box-blockquotes-thr_di9ekcpsru branch from e5d05e6 to 6a1628d Compare June 17, 2026 23:36
brsbl added 9 commits June 17, 2026 16:49
…blockquotes-thr_di9ekcpsru

# Conflicts:
#	apps/app/src/components/secondary-panel/SideChatTabContent.tsx
#	apps/app/src/components/sidebar/ThreadRow.tsx
#	apps/app/src/lib/fork-thread-request.test.ts
#	apps/app/src/lib/fork-thread-request.ts
#	apps/app/src/views/RootComposeView.tsx
#	apps/app/src/views/thread-detail/ThreadDetailView.tsx
@brsbl
brsbl marked this pull request as ready for review June 18, 2026 02:15
@brsbl
brsbl merged commit ad55de1 into main Jun 18, 2026
6 checks passed
@brsbl
brsbl deleted the bb/update-prompt-box-blockquotes-thr_di9ekcpsru branch June 18, 2026 02:40
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.

1 participant