Repository navigation
fix discord link - #6
Merged
Merged
Conversation
johnprg
pushed a commit
that referenced
this pull request
Dec 23, 2025
[Docs] Sidebar | Fixes/Improvements
jpr5
added a commit
that referenced
this pull request
Apr 18, 2026
…ip + isMainPath catch coverage R17-3 #4: validateAll EACCES test now asserts r.status === 3 strictly. The prior expect([1,3]).toContain defeated the fix it was meant to guard — accepting the pre-fix behavior (1). Restructured the fixture to chmod the parent dir (not the file) so statSync in collectDepsFromDir fails EACCES → infra: true → UnreadableInputError → EXIT_UNREADABLE (3) actually fires. chmod'ing the file routed through readFileSync (not-infra parseError → EXIT_DRIFT), never exercised the fix. R17-3 #2: parseRequirementsTxt dropped-line test uses '==1.0.0' — an operator-leading line with no package name is GUARANTEED to be dropped by parseRequirementsLine (leading [A-Za-z0-9] required). Replaced the silent early-return guard with an invariant assertion that fails loudly if the fixture ever stops producing a drop. R17-3 #3: parsePyprojectToml skipped-entry test drops the early-return guard; the Poetry git-only inline table deterministically hits the skipped branch. Added an invariant assertion on detailed.skipped.length. R17-3 #11: printReport within-stream order tests now compare findLastIndex(earlier-group) vs findIndex(later-group). findIndex-only compared first-match only, which would pass even with interleaving. Fixture includes 2 OK + 2 SKIP (and 2 WARN + 2 FAIL) so the stronger assertion has teeth. R17-3 #5: EACCES tests' silent `return;` on root replaced with `it.skipIf(isRoot)` at declaration time. The runtime 'filesystem does not enforce chmod' branch now emits a console.warn so the skip is visible in test output rather than a silent green. R17-3 #6: Added isMainPath catch-branch test. vi.spyOn(path, 'resolve') throws once; asserts result is false, process.exitCode === EXIT_INTERNAL (2), and stderr log contains '[isMainPath] path.resolve failed'. Previously this branch had no coverage — a bare catch {} regression would pass all existing tests.
jpr5
added a commit
that referenced
this pull request
Apr 18, 2026
…use-chain walk, literal-union exit codes - R19-2 #4: runParity wraps body in try/catch, returns EXIT_INTERNAL instead of re-throwing. In-process callers (tests, composed CLIs) now always get a numeric exit code matching ValidateParityExitCode. Previously auditPackage's wrapped-Error throw could surface as an exception. - R19-2 #6: formatErrorChain helper walks .cause chain depth-first with visited-ref guard and depth cap; replaces bare err.stack||err.message in both runParity's internal catch and main()'s top-level catch. Root causes no longer lost. - R19-5 #9: exit code constants marked 'as const'; exported ValidateParityExitCode literal union for type-safe pattern matching. - Test: new in-process runParity case asserts return value 4 (no throw) and stderr carries outer context + 'caused by:' + root cause.
shaneholloman
pushed a commit
to shaneholloman/copilotkit
that referenced
this pull request
Apr 21, 2026
…null-alt filter, registry-gated landing cards - Reject RESERVED_ROUTE_SLUGS at the handler as defense-in-depth. Next.js already prefers exact-match top-level routes over this catch-all, so /docs, /ag-ui, etc. never reach here under normal routing — but if the registry ever ships an integration whose slug collides with a reserved segment, the handler now short-circuits with notFound() rather than rendering garbage (finding CopilotKit#6). - Import the shared findFrameworksWithCell helper instead of a duplicated local copy (finding CopilotKit#3 follow-through). - Filter out unresolved alternative-framework slugs BEFORE mapping to React fragments so the ", " separator aligns with the final rendered count. The pre-filter index previously emitted stray commas when an entry dropped to null mid-sequence (finding CopilotKit#7). - FrameworkLandingPage's four hardcoded LandingCards are now gated by registry integration.features presence: strands (no HITL support) no longer shows a dead "Human-in-the-Loop" card. The card definitions are hoisted into a module-level constant with a TODO pointing at the eventual feature-id → doc-slug mapping (finding CopilotKit#8). - Declare export const dynamicParams = true explicitly so a future migration to output: "export" fails loudly here (under static export dynamicParams must be false) rather than silently 404ing every /<framework>/<slug> URL (finding CopilotKit#9).
4 tasks
AlemTuzlak
added a commit
that referenced
this pull request
Apr 24, 2026
Ports the auth demo from the LangGraph-Python showcase, enforcing a Bearer-token gate at the dedicated /api/copilotkit-auth runtime via createCopilotRuntimeHandler from @copilotkit/runtime/v2 with an onRequest hook. Includes PR#4271 fix #6: useDemoAuth defaults to authenticated so the initial /info handshake succeeds, a local ChatErrorBoundary auto-resets when auth flips, and the banner labels are flipped to Sign in/Sign out.
4 tasks
Merged
7 tasks
AlemTuzlak
added a commit
that referenced
this pull request
May 18, 2026
…iful-chat + 8 more) (#4895) ## Summary Brings `ms-agent-python` to LGP/ADK parity across the first 9 demo cells in manifest order. Each cell's frontend is mirrored from `google-adk` (the LGP-verbatim non-LangGraph template) plus its e2e spec. Cells 10–14 are also ported but unverified (Docker crashed mid-rebuild today — source is on disk and ready to verify next session). ## Cells covered | # | Cell | Status | | --- | --- | --- | | 1 | beautiful-chat | ✅ 8/9 pills green (Excalidraw tracked) | | 2 | agentic-chat | ✅ all 3 starter pills | | 3 | auth | ✅ sign-in → chat → sign-out | | 4 | chat-customization-css | ✅ scoped theme | | 5 | chat-slots | ✅ all 8 slot overrides | | 6 | declarative-gen-ui |⚠️ first pill renders; follow-up call leaks to OpenAI (tracked) | | 7 | frontend-tools | ✅ gradients change per pill | | 8 | frontend-tools-async | ✅ async note search | | 9 | gen-ui-agent |⚠️ narration works; agent-state-card needs dedicated agent (tracked) | | 10 | gen-ui-tool-based | 🟡 ported, unverified | | 11 | headless-complete | 🟡 ported, unverified | | 12 | headless-simple | 🟡 ported, unverified | | 13 | hitl-in-app | 🟡 ported, unverified | | 14 | hitl-in-chat | 🟡 ported, unverified | ## Cross-cutting fixes - **Python agent** (`beautiful_chat.py`, `a2ui_dynamic.py`, `tools/generate_a2ui.py`): pydantic-empty-args support for `generate_a2ui`, session-injected `latest_user_message` for per-pill fixture matching, state_update push for `manage_todos`, dropped `predict_state_config` (PydanticSerializationError on emoji), flat literal-children for `search_flights`, NESTED v0.9 a2ui_operations shape. - **Frontend wiring**: single shared `HttpAgent` aliased to `beautiful-chat`+`default` so STATE_SNAPSHOTs reach the canvas; `useAgent({ agentId: "beautiful-chat" })` in canvas; `frontend_tools` underscore aliases in `/api/copilotkit`. - **New UI infrastructure**: `src/components/ui/*` (10 shadcn components) + `src/lib/utils.ts` + `radix-ui`, `lucide-react`, `class-variance-authority`, `clsx`, `react-markdown`, `remark-gfm`, `tailwind-merge`, `@radix-ui/react-separator` in `package.json`. - **Aimock fixtures** (`feature-parity.json`): Excalidraw `create_view` with string-encoded `elements`; Calculator `generateSandboxedUi`; `manage_todos` `chunkSize: 5000` override (emoji surrogate-pair fix); sonnet + Is-17-prime walkthrough. ## Open follow-ups (not blockers for this PR) - Excalidraw `MCPAppsActivityRenderer` doesn't fire on `agent_framework_ag_ui` path → tool call shows but iframe never mounts. Investigation doc filed in Notion. - `declarative-gen-ui` first pill renders but agent_framework auto-iterates after the tool result, makes a follow-up LLM call that aimock can't match → leaks to real OpenAI → 502 → cosmetic "Internal error" banner. Investigation doc filed in Notion. - `gen-ui-agent` needs a dedicated python agent with `launch-step` state schema for `InlineAgentStateCard`. ## ms-agent-dotnet beautiful-chat (partial, included in PR) Same template port as ms-agent-python. Two known issues left in place (UTF-16 surrogate-split streaming bug on `manage_todos`, A2UI render gap). `SearchFlights` rewritten to flat literal-children. ## Test plan - [ ] D5 ms-agent-python:beautiful-chat → green - [ ] D5 ms-agent-python:agentic-chat → green - [ ] D5 ms-agent-python:auth → green - [ ] D5 ms-agent-python:chat-customization-css → green - [ ] D5 ms-agent-python:chat-slots → green - [ ] Headed walkthrough of cells 10–14 to verify the unverified ports - [ ] Re-run any partial cells (#6, #9) to see whether follow-ups have changed behavior ## Hook note `test-and-check-packages` lefthook excluded for the commit — the failing `packages/shared` vitest is a pre-existing monorepo test-infra issue (can't resolve `graphql`/`zod` despite both being installed in `node_modules`). All my changes are scoped to `showcase/*` so they cannot have caused it.
AlemTuzlak
added a commit
that referenced
this pull request
May 29, 2026
…roubleshooting docs Rate limits (Done-means #6, operationally sane config): - Configure the Bolt App WebClient with an explicit retry policy (retryPolicies.fiveRetriesInFiveMinutes, overridable via the new SlackBridgeConfig.retryConfig). Every Slack call the bridge makes (chat.update streaming, chat.postMessage, users.list, conversations.*) now retries 429s honoring the Retry-After header instead of dropping. - response_url POSTs (HITL/interrupt picker replacement) use raw fetch, bypassing the WebClient, so add a Retry-After-aware retry there too, clamped to 30s/attempt so a malformed or hostile header cannot hang the awaited HITL resolution (and thus the agent turn). Delay math extracted to a pure, unit-tested retryDelayMs(). Docs (Done-means #7, deploy and debug): - README: add Deploying and Troubleshooting sections; drop the now-resolved rate-limit caveat; fix stale demo AGENT_URL examples. Tests: response_url 429 retry + retryDelayMs header parsing/clamp/backoff. @
jpr5
added a commit
that referenced
this pull request
Jun 12, 2026
…g; fix the misleading line-position comment (CF6-G5 #6)
jpr5
added a commit
that referenced
this pull request
Jun 12, 2026
…om stopped-after-running (CF7 #6)
huangyingting
pushed a commit
to repomesh/CopilotKit
that referenced
this pull request
Jun 12, 2026
…-side parity (SU7-F1/F2/F3)
SU7-F1 — backend host pattern hardening:
- F1.1 Reject bare trailing ?/# in the backend host pattern
- F1.2 Strip internal tab/CR/LF from the backend host pattern
- F1.3 Warn when ignoring an empty-string local backend override
- F1.4 Reject empty-userinfo @ in the backend host pattern authority
- F1.5 Keep __proto__ keys as data in local-backend maps
- F1.6 Commit the local-backends memo key only after the value computes
- F1.7 Trim local backend overrides before validation and name the real
rejection
- F1.8 Honest FATAL when the pattern host is a stray scheme fragment
- F1.9 Canonicalize the pattern authority for parity with the override
path
- F1.10 Acknowledge the staging-to-prod fail-open in the pattern fallback
- F1.11 Harden backend-url/local-backends-env test hygiene
SU7-F2 — runtime-config & client-config edge cases:
- F2.1 Branch POSTHOG_HOST rejection reasons (scheme/degenerate/parse-
failure) instead of the catch-all mislabel
- F2.2 Reject loopback BASE_URL/DOCS_HOST in production instead of the
silent http:// prepend
- F2.3 Key the DOCS_HOST fallback once-guard on (mode, shellHost, value)
and mode-prefix all value-only guard keys
- F2.4 Reject a present-but-empty posthogKey in the client config reader
- F2.5 Drop the trailing slash from SSR_PLACEHOLDER_URL for structural
parity with server values
- F2.6 Attribute the DOCS_HOST slash-strip to readDocsHost itself
- F2.7 Normalize trailing-dot FQDN spellings in the docs self-host loop
guard (both compare sides)
- F2.8 Harden console spies to capture all log args; pin the full all-env
config shape; converge SSR simulation on vi.stubGlobal
SU7-F3 — script-side parity, table classification & test isolation:
- F3 CopilotKit#1 Handle a missing reference integration per the error contract
- F3 CopilotKit#2 Port the runtime backend-host-pattern normalization into the
generator — scheme/trailing-slash strip, degenerate fallback,
NEXT_PUBLIC fallback
- F3 CopilotKit#3 Treat non-mapping manifest parses (empty/null/scalar/array YAML)
as validation errors, not TypeErrors
- F3 CopilotKit#4 Label a missing/unreadable constraints.yaml per the stderr+exit(1)
error contract
- F3 CopilotKit#5 Align atomic-write tmp naming with the test harness straggler-
sweep convention; guard main() on direct invocation
- F3 CopilotKit#6 Correct the determineCellStatus unshipped docstring; replace
stale hardcoded cell counts with formulas
- F3 CopilotKit#7 Isolate the pattern suite on a per-suite tmpdir harness; snapshot
the generator's full write set
- F3 CopilotKit#8 Classify discarded duplicate wildcards as duplicates — hoist the
owner check above the destination warns
- F3 CopilotKit#9 Reject a root ("/") EXACT seo-redirect source — homepage-hijack
twin of the root-wildcard guard
- F3 CopilotKit#10 Reject seo-redirect entries with non-printable-ASCII source/
destination — close the silent-dead-entry class
- F3 CopilotKit#11 Strip trailing slashes in normalizePosthogHost before the scheme
test
- F3 CopilotKit#12 Message-filter the empty-slug-set error count; pin the single
matcher entry
BenTaylorDev
added a commit
that referenced
this pull request
Jul 7, 2026
…ign (ENT-1051) (#5823) Redesigns the shared `<copilotkit-threads-drawer>` element (`@copilotkit/web-components`) to the new Figma UX, keeping the React, Vue, and Angular wrappers in lockstep. Pure-VIEW change — no `@copilotkit/core`, runtime, or `useThreads` changes. **Ticket:** [ENT-1051](https://linear.app/copilotkit/issue/ENT-1051) · **Figma:** [Thread Drawer](https://www.figma.com/design/feSsBJw1qCfLp0JNnOurrJ/CopilotKit-Intelligence?node-id=723-78) · **Spec:** [Notion](https://app.notion.com/p/3953aa381852819ab464dae3894e7f18) ## What changed - **Header** → right-aligned icon row. On desktop it holds the **collapse** toggle (sidebar glyph); on mobile the **close** toggle. No title text, no "+ New" pill. Optional `slot="header"` preserved (empty by default; the toggle right-aligns after it). - **New Conversation** row (plus-square + label) below the header — keeps `part="new-thread-button"` + the `new-thread` event. - **Recent Conversations** heading + **funnel** filter icon → Active/All popover. Preserves `_filter` + `filter-change` and `part="filter-active"`/`filter-all"`. - **Per-row kebab menu** (⋮) holding Archive/Unarchive + Delete — preserves those events + parts. An open kebab now shields the rest of the list from hover so it reads as a single surface (see Review fixes). - **Delete confirm** is a native `<dialog>` opened with `showModal()` (browser top layer), centered over the drawer's visible box — it can't paint under other UI or drop below the fold. jsdom falls back to the `open` attribute. - **Archived rows** render italic/muted inline in the "All" view. - **Desktop collapse** → `collapsed` / `collapsible` props (default **expanded**) + a `collapse-change` event / `CollapseChangeDetail`. Collapsing sets `--cpk-drawer-reserved-width: 0` on the document root so the host grid reclaims the column with no hydration flicker. - **Unified floating cluster** (Figma "closed" mockup) = `[sidebar-toggle] [+ New Conversation]`, shown in both the mobile-closed and desktop-collapsed states. Mobile stays an off-canvas modal (backdrop / Escape / focus-trap). ## Compatibility - All existing `::part()` names and events are preserved; only **additive** parts are introduced: `collapse-toggle`, `close-toggle`, `section-heading`, `filter-toggle`, `row-menu`, `row-menu-popover`, `launcher-cluster`, `launcher`, `launcher-new-thread`, plus `confirm-dialog`/`confirm-cancel`/`confirm-delete`/`backdrop`. One additive event: `collapse-change`. - Additive wrapper props: `recentLabel` (all frameworks); `collapsible`/`collapsed` + `onCollapseChange` (React) / equivalents in Vue & Angular. - **Usage note (now in the docs):** the drawer and `<CopilotChat>` must share a chat-configuration provider so the drawer drives the chat — `CopilotChatConfigurationProvider` (React/Vue) / `provideCopilotChatConfiguration()` (Angular). The v2 `CopilotKitProvider` does not provide that context on its own. - Verified: **no example `::part()` theme changes required** — every example themes the drawer via inherited `--cpk-drawer-*` custom properties. ## Descoped / changed during development (re: earlier review) - **Client-side search was removed at the designer's request.** There is **no** search UI, `search` event, `search-toggle`/`search-input` part, or `onSearch` wrapper prop in the shipped element. Any remaining "search" mention in older comments is stale. - **Desktop collapse was briefly backed out, then re-restored** per the designer (commit `8bfd245305`). The shipped element **has** collapse (`collapsed` is a live public property — it was not removed). ## Review fixes (commit `0b4f6ca392`) Addressing @MikeRyanDev and @marthakelly: - **`core/threads.ts`** — a full-list refetch (filter-change / retry) now clears `fetchMoreError` on both `listRequested` and `listSucceeded`, so the inline "couldn't load more — retry" banner no longer survives onto a fresh list. - **Escape while confirming delete** — the host keydown handler now consumes Escape while a confirmation is open; previously the bubbled keydown fell through and closed the whole mobile drawer along with the confirmation. - **Open kebab menu shields the list** — `.list.menu-open .row:not(.menu-open)` gets `pointer-events: none`, so other rows no longer reveal their kebab / paint a host `::part(row):hover` background around or behind the open popover. Click-away dismissal is preserved via the existing document pointerdown handler. (Verified live in the langgraph-js example.) - **Docs token** — dropped the removed `--cpk-drawer-rail-width` from the web-components README. ## Testing All suites run via `nx`, green through each package's lefthook pre-commit gate: - `@copilotkit/web-components` — **92** drawer element tests + `:build` green. Covers header collapse/close toggles, New Conversation, funnel filter switch, `recentLabel`, kebab open + archive/delete routing, confirm-dialog gating + native cancel + **backdrop-click dismiss**, **Escape-while-confirming (no drawer close)**, **open-menu row shield**, collapse/cluster/column-reclaim, archived-italic, preserved parts/events, `header` slot + `label` aria-labels. - `@copilotkit/core` — **553** tests incl. the new `clears a lingering fetchMoreError when a full list refetch succeeds`. - `@copilotkit/react-core` — CopilotThreadsDrawer suite + full package **1419** green. - `@copilotkit/vue` — **32** incl. SSR + the `collapsible` boolean-prop-default regression test. - `@copilotkit/angular` — CopilotThreadsDrawer spec **35** (incl. **scoped-chat-input focus**: prefers the ancestor `copilot-chat-view` over the document-global fallback); full package **178**. ## Follow-on - Docs (screenshot + reference/guide) on the release-gated docs PR **#5780**. - Release (`web-components` + `react-core` + `vue` + `angular`, lockstep) + CLI scaffolding bump. - Example grid/theme updates ride the release in **#5828**. - **[ENT-1080](https://linear.app/copilotkit/issue/ENT-1080)** — dedup the per-wrapper `findChatInput` / open-state fallback (marthakelly #6, deliberately deferred as a cross-package refactor). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
davidmckayv
added a commit
that referenced
this pull request
Jul 23, 2026
…k PDF Q2 report
Fixes three demo-pill defects surfaced in review:
- "What's on my screen?": the agent refused ("I can't inspect the live
screen"). Add a SCREEN AWARENESS rule so it treats its context (current
page + live cards/policies/transactions) as its screen view and answers
confidently, citing the actual on-screen figures.
- "show the tool calls" (#6 Q2 report, #7 favorite food): add a wildcard
("*") renderToolCalls chip that renders a visible "tool . <label>" pill for
every tool call with no richer renderer of its own (recall_memory,
save_memory, createReport, render_report, ...). MCP-namespaced names map to
friendly labels.
- Q2 report (#6): the suggestion path drops attachments, so the report never
saw the PDF. A custom suggestionView slot (demo-suggestions.tsx) takes over
pill clicks: "Prep the Q2 report" drives the real composer (stage invoice ->
type -> send) so the PDF rides as a real attachment chip and the run
completes cleanly (a hand-rolled runAgent left createReport's result
dangling and Intelligence failed the run). gpt-5.4 reads the invoice and
folds its line items into the filed report + charts via createReport
additions (Spend Breakdown -> Marketing 96%).
- "Change my card PIN" (#3): the slot navigates to /?operation=change-pin to
open the app's own PIN dialog instead of routing PIN entry through the agent
pane.
Extract the invoice-staging helper (attach-invoice.ts) shared by the header
paperclip button and the Q2 pill. Includes the previously-uncommitted report
additions plumbing (data.ts, reports route, report-tool, reports-view).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
…null-alt filter, registry-gated landing cards - Reject RESERVED_ROUTE_SLUGS at the handler as defense-in-depth. Next.js already prefers exact-match top-level routes over this catch-all, so /docs, /ag-ui, etc. never reach here under normal routing — but if the registry ever ships an integration whose slug collides with a reserved segment, the handler now short-circuits with notFound() rather than rendering garbage (finding CopilotKit#6). - Import the shared findFrameworksWithCell helper instead of a duplicated local copy (finding CopilotKit#3 follow-through). - Filter out unresolved alternative-framework slugs BEFORE mapping to React fragments so the ", " separator aligns with the final rendered count. The pre-filter index previously emitted stray commas when an entry dropped to null mid-sequence (finding CopilotKit#7). - FrameworkLandingPage's four hardcoded LandingCards are now gated by registry integration.features presence: strands (no HITL support) no longer shows a dead "Human-in-the-Loop" card. The card definitions are hoisted into a module-level constant with a TODO pointing at the eventual feature-id → doc-slug mapping (finding CopilotKit#8). - Declare export const dynamicParams = true explicitly so a future migration to output: "export" fails loudly here (under static export dynamicParams must be false) rather than silently 404ing every /<framework>/<slug> URL (finding CopilotKit#9).
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.
No description provided.