Fill new-agent starter content; block workbench on mobile - #29
Merged
Conversation
…; block the workbench on mobile
createAgent() used to seed core sections from SectionDef.template, which reads as an
empty bracket-placeholder form ("You are a [senior X]...") to a first-time user, and
no config defaults were ever seeded. New agents now start from a complete "Code
Reviewer" example (all four core sections + model/tools config) that the user edits
or deletes. SectionDef.template itself is untouched — it's still what "+ Add section"
seeds on an existing agent, which must stay a blank/generic starting point.
The workbench (WorkbenchShell) is a fixed multi-pane grid with no responsive behavior
of its own. Rather than attempt a real mobile layout pre-launch, show a friendly
"best on a larger screen" notice below 768px instead (CSS-only, no resize listener)
and hide the broken grid there.
Closes #9
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017LzvvxNk3f9W5eZQxY578e
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
createAgent()seeds new agents with a complete "Code Reviewer" example (all 4 core sections + model/tools config) instead of bracket placeholders like "You are a [senior X]..." — closes Better starter content for "+ New agent" #9.SectionDef.templateis untouched (still used by "+ Add section" on existing agents).WorkbenchShell) shows a "best on a larger screen" notice below 768px instead of rendering the broken 4-pane grid — CSS-only, no JS resize listener.Closes #9
Test plan
npx tsc --noEmit— cleannpm test— 894/894 passing