Repository navigation
Pin the chat's task at its top right; open other tasks in a modal - #56
Conversation
Published from the private repository by oss-sync. - Pin the chat's task at its top right; open other tasks in a modal 8 files changed, 387 insertions(+), 157 deletions(-)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b22fd3ff2d
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ref={cardRef} className={classes} tabIndex={-1} | ||
| {...(pinned ? { role: 'complementary' } : { role: 'dialog', 'aria-modal': true })} |
There was a problem hiding this comment.
Keep keyboard focus inside the task modal
When a task opens as a dialog, only the wrapper receives initial focus; there is no Tab handling or inert treatment for the underlying page. A keyboard user can therefore Tab or Shift+Tab out of the modal and activate controls behind the backdrop. Trap focus within the card, as the settings dialog does, or make the background inert while it is open.
AGENTS.md reference: AGENTS.md:L96-L96
Useful? React with 👍 / 👎.
| aria-label={label} | ||
| > | ||
| {head} | ||
| {!folded && ( |
There was a problem hiding this comment.
Commit drafts before automatically folding the pinned card
On a device with no stored fold preference, resizing the chat below 1000px—or opening a side panel that makes it cross that threshold—sets folded while the title or description may still be focused. The conditional then removes that textarea without blurring it, but CardBody and its useDraft hook remain mounted, so neither onBlur nor the hook's unmount cleanup commits the edit; it can remain unsaved until a later task change and be lost on reload. Blur or explicitly commit active drafts before applying the automatic fold.
Useful? React with 👍 / 👎.
| export function pinTask(ref: string, reveal: () => void): () => void { | ||
| pinned.set(ref, reveal) | ||
| return () => { if (pinned.get(ref) === reveal) pinned.delete(ref) } |
There was a problem hiding this comment.
Close a task dialog when the task becomes pinned
If the owner opens a task dialog while Chat is not visible and then uses browser Back to return to a chat linked to that task, the global dialog state remains set while pinTask independently registers the new pinned card. The same task is consequently rendered both as a modal and as the chat's pinned card, even though a chat's own task is supposed to use only the pinned presentation. Clear the matching open dialog when registering the pin, or otherwise reconcile these states when Chat becomes visible.
AGENTS.md reference: AGENTS.md:L96-L96
Useful? React with 👍 / 👎.
Published from the private repository by oss-sync.
8 files changed, 387 insertions(+), 157 deletions(-)