Skip to content

feat(staged): compact new session dialog#785

Merged
matt2e merged 4 commits into
mainfrom
compact-new-session-dialog
Jun 12, 2026
Merged

feat(staged): compact new session dialog#785
matt2e merged 4 commits into
mainfrom
compact-new-session-dialog

Conversation

@matt2e

@matt2e matt2e commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move repo/subpath context into the New Session header.
  • Surface image attachment controls in the footer before images are attached.
  • Align the footer controls and emphasize the start/queue action.

matt2e and others added 3 commits June 12, 2026 12:46
Relocate the repo/subpath RepoLabel from the dialog body to the modal
header, placing it to the right of the [New <type>] mode dropdown. The
mode switcher and repo label are now grouped in a .header-left flex
container while the close button stays right-aligned; the repo pill is
slimmed to match the dropdown height and truncates with an ellipsis when
space is tight.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
@matt2e matt2e requested review from baxen and wesbillman as code owners June 12, 2026 04:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b59bce9e76

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +512 to +520
{#if imageIds.length === 0}
<ImageAttachment
branchId={branch.id}
projectId={branch.projectId}
disabled={starting}
{imageIds}
{onImageIdsChange}
/>
{/if}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the uploader mounted while multi-select finishes

When the dialog starts with no images, this conditional mounts a different ImageAttachment than the one used after the first image is added. If a user selects multiple files in one picker action, ImageAttachment.handleFileSelect is still looping asynchronously after the first onImageIdsChange, but this zero-image instance gets unmounted and continues with its stale imageIds prop; subsequent uploads call onImageIdsChange([...imageIds, image.id]) from the stale empty array, so earlier selected images can be dropped. Keep a single uploader instance mounted across the empty/non-empty transition or make the callback append against current parent state.

Useful? React with 👍 / 👎.

Signed-off-by: Matt Toohey <contact@matttoohey.com>
@matt2e matt2e merged commit 4aae348 into main Jun 12, 2026
5 checks passed
@matt2e matt2e deleted the compact-new-session-dialog branch June 12, 2026 12:53
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