Repository navigation
feat(web): set goals in a popover above the composer - #1476
Merged
Merged
Conversation
The goal dialog becomes a popover on the composer's top edge, as wide as the composer (a bottom sheet on phones), so the thread stays in view. The objective reads as the end of "Done when…", common checks join it with one click, Codex budgets are presets or a custom number, and one sentence says when the agent stops. Escape or a click outside keeps the draft for the next opening. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What changes
Setting a goal moves from a modal dialog to a popover on the composer's top edge, as wide as the composer. On phones it is a bottom sheet (the kit
Popoverwithsheet). The thread stays in view while you write the goal. The same entry points open it: "Set a goal" in the composer's + menu and Set / Replace the goal… in the command palette.Inside the popover:
tests pass,the build passes,lint is cleanandtypes checkadd " and …" to the objective with one click. A chip leaves the row once the text contains it.Code:
GoalDialog.svelte→GoalPopover.svelte. NewGoalObjectiveEditor.svelteandGoalBudgetPicker.svelte.budgetTokenslive ingoals.ts.+page.svelteanchors the popover to[data-thread-composer-slot].docs/ui-api.md: thefeatures/goalsdescription and its status line.Copy audit (docs/copy.md §8)
Add “tests pass”and so on.Rewritten strings:
Verification
Local:
apps/webtypecheck (svelte-check,--fail-on-warnings): 0 errors and 0 warnings after rebasing ondev.aria-invalidclear);Not verified:
The rest is left to CI.
🤖 Generated with Claude Code