Skip to content

Share console clipboard feedback and parse chat payloads once - #907

Merged
Gajesh2007 merged 1 commit into
refactor/repository-webfrom
refactor/console-copy-stream
Sep 12, 2026
Merged

Gajesh2007 merged 1 commit into
refactor/repository-webfrom
refactor/console-copy-stream

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Code examples and provider setup commands each manage the same asynchronous clipboard feedback and cleanup. Share that state machine through useClipboard, keeping tab reset, pending-write handling, error feedback, and the two-second success reset. Chat SSE payloads now parse once before receipt/token dispatch instead of parsing every token twice.

Stacked on #902 (refactor/repository-web) so full TypeScript validation stays enabled. No API, encryption, trust receipt, or visible copy changes.

Validation: pinned Node 22 passes all 694 tests, complete TypeScript checking, ESLint (existing warnings), and full Next production build including types. Existing tests exercise pending/rejected clipboard writes, stale completion after tab changes, provider setup feedback, chat SSE, and encrypted responses.

flowchart LR
  subgraph Before
    A[CodeExample local copy lifecycle] --> B[Copying / Copied / error UI]
    C[SetupCommand local copy lifecycle] --> B
    D[SSE payload] --> E[Parse for receipt]
    E --> F[Parse again for delta]
    F --> G[Token or thinking callback]
    E --> H[Trust receipt]
  end
Loading
flowchart LR
  subgraph After
    A[CodeExample and SetupCommand] --> B[useClipboard attempt and timer lifecycle]
    B --> C[Same feedback and stale completion suppression]
    D[SSE payload] --> E[Parse once]
    E --> F[Trust receipt]
    E --> G[Same token or thinking callback]
  end
Loading

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 11, 2026 11:29pm UTC
d-inference-console-ui-dev Ready Ready Preview Sep 11, 2026 11:29pm UTC
d-inference-landing Ready Ready Preview Sep 11, 2026 11:29pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-11T23:30:32.239487Z 91c8242 Manual request
ℹ️ 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.

@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 29e8fccf09

ℹ️ 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".

@Gajesh2007
Gajesh2007 force-pushed the refactor/repository-web branch from 69fcd34 to 81bcfed Compare September 11, 2026 23:27
@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 91c8242ee3

ℹ️ 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".

@Gajesh2007
Gajesh2007 merged commit f01eb5d into refactor/repository-web Sep 12, 2026
16 of 17 checks passed
@Gajesh2007

Copy link
Copy Markdown
Member Author

Follow-up for the merge into the old base branch: #989 carries this exact source tree directly against current master, which already contains #902. Fresh Node 22 checks pass all 694 console tests, TypeScript, ESLint (no errors) and the Next production build.

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference-console-ui-dev — 91c8242e Deployed Sep 11, 2026 by vercel[bot]
Preview – d-inference — 91c8242e Deployed Sep 11, 2026 by vercel[bot]
Preview – d-inference-landing — 91c8242e Deployed Sep 11, 2026 by vercel[bot]
benchmarks — 91c8242e Deployed Sep 11, 2026 by Gajesh2007 via E2E Benchmarks #958
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.

2 participants