Skip to content

Pin the chat's task at its top right; open other tasks in a modal - #56

Merged
ehonis merged 1 commit into
mainfrom
sync/private-main
Nov 16, 2026
Merged

ehonis merged 1 commit into
mainfrom
sync/private-main

Conversation

@ehonis

@ehonis ehonis commented Nov 16, 2026

Copy link
Copy Markdown
Owner

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(-)

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(-)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T19:22:19.835211Z b22fd3f PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ehonis
ehonis merged commit 09bd270 into main Nov 16, 2026
4 checks passed
@ehonis
ehonis deleted the sync/private-main branch November 16, 2026 19:17

@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: 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".

Comment thread web/src/work/TaskCard.tsx
Comment on lines +242 to +243
ref={cardRef} className={classes} tabIndex={-1}
{...(pinned ? { role: 'complementary' } : { role: 'dialog', 'aria-modal': true })}

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 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 👍 / 👎.

Comment thread web/src/work/TaskCard.tsx
aria-label={label}
>
{head}
{!folded && (

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 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 👍 / 👎.

Comment thread web/src/work/card.ts
Comment on lines +23 to +25
export function pinTask(ref: string, reveal: () => void): () => void {
pinned.set(ref, reveal)
return () => { if (pinned.get(ref) === reveal) pinned.delete(ref) }

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 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 👍 / 👎.

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