Repository navigation
fix: set text area within the input box to transparent background - #1550
Merged
Merged
Conversation
ranst91
requested review from
ataibarkai,
mme,
suhasdeshpande and
tylerslaton
as code owners
March 25, 2025 19:26
Contributor
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
🦋 Changeset detectedLatest commit: 2b949f6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
Preview environments destroyed for this pull request. |
Contributor
Test ResultsStatus: ✅ Passed (View Run) Commit: fcc9ada Duration: 379.7s Total Tests: 32 Pass Rate: 100.0% Failed Tests: 0 🔍 Detailed Resultscoagents-research-canvasCoAgents Research Canvas (UI) - Local Depenencies
coagents-qa-nativeCoAgents QA Native (UI) - Local
coagents-qa-textCoAgents QA Text (UI) - Local
coagents-routingCoAgents Routing (UI) - Local
next-openaiNext OpenAI - Self Hosted
|
johannhartmann
pushed a commit
to johannhartmann/CopilotKit
that referenced
this pull request
Oct 31, 2025
jpr5
added a commit
that referenced
this pull request
Apr 21, 2026
…#4115) ## Summary - Bump `ag-ui-crewai` pin to `>=0.2.0,<0.3.0`. 0.1.5 had three defects (unguarded `source.state.messages`, orphan `asyncio.create_task`, sync `completion()`) that wedged the agent on 2026-04-21. All fixed in ag-ui [PR #1550](ag-ui-protocol/ag-ui#1550), released as 0.2.0 on 2026-04-18 — our pin was blocking it. - Remove the pre-bind monkey-patch shim in `src/agent_server.py`; superseded by 0.2.0's native deferred `ChatWithCrewFlow` construction (module-scoped `_cached_flow` + `asyncio.Lock` inside `add_crewai_crew_fastapi_endpoint`). Any LLM hiccup now surfaces as a 5xx on first request instead of a startup crash, which is exactly what the shim was reaching for. `logging` import dropped since it was only used by the shim. - Add `python -u` to the uvicorn invocation in `entrypoint.sh` as a belt-and-suspenders complement to the existing `PYTHONUNBUFFERED=1`. `awk '{...; fflush()}'` in the pipe was already line-flushing; `-u` is not overridable by user code. Railway saw only ~15 log lines over 9h during the 04-21 incident because of pipe-buffering through a previous `sed` formulation. - Update `showcase/scripts/fail-baseline.json`'s `validatePinsFailHash` to match the new `ag-ui-crewai` spec string in the FAIL set. Pin-drift FAIL count is unchanged (110); only the hashed line text changed. Root-cause context: Notion [Showcase starters: silent-hang vulnerability class](https://www.notion.so/3493aa3818528191bc08f8b2f3fb1e88). ## Test plan - [x] `pip install -r requirements.txt` resolves `ag-ui-crewai==0.2.0` (verified locally in a fresh 3.12 venv; no dep conflicts with `crewai==0.130.0` or `crewai-tools`). - [x] Agent starts cleanly under `python -u -m uvicorn agent_server:app`; `/health` returns 200 `{"status":"ok"}` (verified locally). - [x] Agent import no longer references the `crewai.cli.crew_chat` hardening shim; `ag_ui_crewai.endpoint.add_crewai_crew_fastapi_endpoint` registers without pre-bind LLM calls (verified via FastAPI route inspection after import). - [x] `pytest tests/python/` — 94/94 pass. - [x] `pnpm -C showcase/scripts test` — 1079/1079 pass. - [x] `validate-pins.ts` — FAIL count matches baseline (110); new hash committed to `fail-baseline.json`. - [ ] `/api/smoke` completes against live upstream on Railway (requires deploy). - [ ] Railway deploy logs show uvicorn request lines (not just entrypoint banner). - [ ] Watchdog from #4114 still loops. ## Intentionally out-of-scope (follow-ups) - `showcase/starters/crewai-crews/` parity backport (starter still carries the 0.1.5 pin and the shim). - The 14-starter watchdog generalisation — tracked in the Notion proposal above.
pull Bot
pushed a commit
to KornaAI/CopilotKit
that referenced
this pull request
Apr 21, 2026
… + -u flag Root-cause fix for the 04-21 silent-hang incident on the crewai-crews Railway deploy. Three tightly-coupled changes: 1. Bump ag-ui-crewai pin from `>=0.1.4,<0.1.6` to `>=0.2.0,<0.3.0`. 0.1.5 had three defects that wedged the agent: unguarded `source.state.messages` access, an orphan `asyncio.create_task` with no cancel ref, and a sync `completion()` call that pinned the event loop. All three are fixed in ag-ui PR CopilotKit#1550, released as 0.2.0 on 2026-04-18. Our upper ceiling was blocking the fix. 2. Remove the pre-bind LLM crash hardening shim in `agent_server.py`. The shim monkey-patched `crewai.cli.crew_chat.generate_*_description_with_ai` to static strings so that `ChatWithCrewFlow.__init__` — which ag-ui-crewai <= 0.1.5 invoked at endpoint-registration time, BEFORE uvicorn bound its port — could not crash the process before the HTTP server was listening. 0.2.0 defers `ChatWithCrewFlow` construction to first request via a module-scoped `_cached_flow` + `asyncio.Lock` inside `add_crewai_crew_fastapi_endpoint`. Any LLM hiccup now surfaces as a 5xx on the first request instead of a startup crash, which is what the shim was reaching for. The shim is dead code on 0.2.0 and has been removed (with `logging` import dropped as it was only used by the shim). 3. Add `python -u` to the uvicorn invocation in `entrypoint.sh` as a belt-and-suspenders complement to the existing `PYTHONUNBUFFERED=1` export. The env var can in principle be un-exported by a child; `-u` forces unbuffered stdout/stderr at the interpreter level and is not overridable by user code. Combined with `awk '{...; fflush()}'` in the pipe (already in place), this guarantees uvicorn request lines reach Railway's log stream line-at-a-time. During the 04-21 incident Railway saw only ~15 log lines over 9h of uptime because of buffering through a previous `sed` formulation. Also updates `showcase/scripts/fail-baseline.json`'s `validatePinsFailHash` to match the new `ag-ui-crewai` spec string. Pin-drift FAIL count is unchanged (110); the hash changed only because the `ag-ui-crewai` line in the FAIL set went from `>=0.1.4,<0.1.6` to `>=0.2.0,<0.3.0`. Verified locally: - `pip install -r requirements.txt` resolves `ag-ui-crewai-0.2.0` cleanly. - `python -u -m uvicorn agent_server:app` starts; `/health` returns 200 `{"status":"ok"}`; request lines appear in real-time logs. - `pytest tests/python/` — 94/94 pass. - `pnpm -C showcase/scripts test` (vitest) — 1079/1079 pass. - `validate-pins.ts` — count=110 matches baseline; hash updated. Upstream refs: - crewAI issue: crewAIInc/crewAI#5510 - ag-ui PR CopilotKit#1550: ag-ui-protocol/ag-ui#1550 Intentionally NOT in this PR: - `showcase/starters/crewai-crews/` parity backport (the starter still carries the 0.1.5 pin and the shim). - The 14-starter watchdog generalisation. Both belong to the silent-hang vulnerability-class work tracked separately.
jpr5
added a commit
that referenced
this pull request
Apr 21, 2026
## Summary Bump the Dojo-side `ag-ui-crewai` pin to match the showcase counterpart ([#4115](#4115)) and close the validate-pins drift. - `examples/integrations/crewai-crews/agent/requirements.txt`: `ag-ui-crewai>=0.1.5` → `ag-ui-crewai>=0.2.0,<0.3.0` ## Why `ag-ui-crewai` 0.1.5 has three known defects that took down crewai-crews in prod for 9h on 2026-04-21: 1. Unguarded `.messages` access on state 2. Orphan `asyncio.create_task` (fire-and-forget without tracking) 3. Sync `completion(` call in an async path All three are fixed upstream in ag-ui PR [#1550](ag-ui-protocol/ag-ui#1550), shipped as ag-ui-crewai `0.2.0`. Showcase already moved to `0.2.x` in [#4115](#4115) (merged today). Dojo is the user-facing reference repo — leaving it on `0.1.5` means every reader clones the broken version. ## Pre-flight verification ### Pip resolve (Python 3.12 venv, `pip install --dry-run`) Clean resolution. Picked `ag-ui-crewai-0.2.0` alongside `ag-ui-protocol-0.1.17`, `crewai-0.130.0`, `crewai-tools-0.47.1`. No conflicts reported. Relevant tail of resolver output: ``` Would install ... ag-ui-crewai-0.2.0 ag-ui-protocol-0.1.17 crewai-0.130.0 crewai-tools-0.47.1 ... ``` ### Consumer code audit Grepped `examples/integrations/crewai-crews/` for any pattern matching the 0.1.5 defect paths: - `\.state\.messages` / `state\[.messages.\]` → no matches - `source\.state\.messages` → no matches - `asyncio\.create_task` → no matches - `crewai\.completion\(` / `litellm\.completion\(` → no matches - `messages|create_task|completion` across the whole `agent/` directory → no matches The Dojo integration consists of `server.py`, `crew.py`, `main.py`, `tools/custom_tool.py` — none of them directly access `.state.messages`, schedule orphan tasks, or invoke sync `completion()`. The 0.2.0 bump is purely a transitive fix; no consumer-side code changes are needed. ## Test plan - [x] `pip install --dry-run -r examples/integrations/crewai-crews/agent/requirements.txt` resolves cleanly (Python 3.12) - [x] Grep confirms no consumer code hits 0.1.5 defect paths - [ ] validate-pins CI job goes green (drift closed against showcase) - [ ] Basic CrewAI flow runs in the dev environment against the updated pin ## Related - Showcase counterpart: [#4115](#4115) - Upstream fix: [ag-ui-protocol/ag-ui#1550](ag-ui-protocol/ag-ui#1550)
jenningsloy318
pushed a commit
to JMaiGC/CopilotKit
that referenced
this pull request
Apr 21, 2026
ag-ui-crewai 0.1.5 contains three defects that took down crewai-crews in prod for 9h on 2026-04-21: unguarded .messages access, orphan asyncio.create_task, and sync completion() calls. All three are fixed in 0.2.0 (ag-ui PR CopilotKit#1550). Showcase already moved to 0.2.x in PR CopilotKit#4115. Dojo is the user-facing reference — leaving it on 0.1.5 means every reader clones the broken version. This closes the validate-pins drift. Pip dry-run resolves ag-ui-crewai-0.2.0 cleanly with no conflicts. Grep of examples/integrations/crewai-crews/ confirms no consumer code touches the 0.1.5 defect paths (.state.messages, create_task, completion sync).
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
… + -u flag Root-cause fix for the 04-21 silent-hang incident on the crewai-crews Railway deploy. Three tightly-coupled changes: 1. Bump ag-ui-crewai pin from `>=0.1.4,<0.1.6` to `>=0.2.0,<0.3.0`. 0.1.5 had three defects that wedged the agent: unguarded `source.state.messages` access, an orphan `asyncio.create_task` with no cancel ref, and a sync `completion()` call that pinned the event loop. All three are fixed in ag-ui PR CopilotKit#1550, released as 0.2.0 on 2026-04-18. Our upper ceiling was blocking the fix. 2. Remove the pre-bind LLM crash hardening shim in `agent_server.py`. The shim monkey-patched `crewai.cli.crew_chat.generate_*_description_with_ai` to static strings so that `ChatWithCrewFlow.__init__` — which ag-ui-crewai <= 0.1.5 invoked at endpoint-registration time, BEFORE uvicorn bound its port — could not crash the process before the HTTP server was listening. 0.2.0 defers `ChatWithCrewFlow` construction to first request via a module-scoped `_cached_flow` + `asyncio.Lock` inside `add_crewai_crew_fastapi_endpoint`. Any LLM hiccup now surfaces as a 5xx on the first request instead of a startup crash, which is what the shim was reaching for. The shim is dead code on 0.2.0 and has been removed (with `logging` import dropped as it was only used by the shim). 3. Add `python -u` to the uvicorn invocation in `entrypoint.sh` as a belt-and-suspenders complement to the existing `PYTHONUNBUFFERED=1` export. The env var can in principle be un-exported by a child; `-u` forces unbuffered stdout/stderr at the interpreter level and is not overridable by user code. Combined with `awk '{...; fflush()}'` in the pipe (already in place), this guarantees uvicorn request lines reach Railway's log stream line-at-a-time. During the 04-21 incident Railway saw only ~15 log lines over 9h of uptime because of buffering through a previous `sed` formulation. Also updates `showcase/scripts/fail-baseline.json`'s `validatePinsFailHash` to match the new `ag-ui-crewai` spec string. Pin-drift FAIL count is unchanged (110); the hash changed only because the `ag-ui-crewai` line in the FAIL set went from `>=0.1.4,<0.1.6` to `>=0.2.0,<0.3.0`. Verified locally: - `pip install -r requirements.txt` resolves `ag-ui-crewai-0.2.0` cleanly. - `python -u -m uvicorn agent_server:app` starts; `/health` returns 200 `{"status":"ok"}`; request lines appear in real-time logs. - `pytest tests/python/` — 94/94 pass. - `pnpm -C showcase/scripts test` (vitest) — 1079/1079 pass. - `validate-pins.ts` — count=110 matches baseline; hash updated. Upstream refs: - crewAI issue: crewAIInc/crewAI#5510 - ag-ui PR CopilotKit#1550: ag-ui-protocol/ag-ui#1550 Intentionally NOT in this PR: - `showcase/starters/crewai-crews/` parity backport (the starter still carries the 0.1.5 pin and the shim). - The 14-starter watchdog generalisation. Both belong to the silent-hang vulnerability-class work tracked separately.
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
…CopilotKit#4115) ## Summary - Bump `ag-ui-crewai` pin to `>=0.2.0,<0.3.0`. 0.1.5 had three defects (unguarded `source.state.messages`, orphan `asyncio.create_task`, sync `completion()`) that wedged the agent on 2026-04-21. All fixed in ag-ui [PR CopilotKit#1550](ag-ui-protocol/ag-ui#1550), released as 0.2.0 on 2026-04-18 — our pin was blocking it. - Remove the pre-bind monkey-patch shim in `src/agent_server.py`; superseded by 0.2.0's native deferred `ChatWithCrewFlow` construction (module-scoped `_cached_flow` + `asyncio.Lock` inside `add_crewai_crew_fastapi_endpoint`). Any LLM hiccup now surfaces as a 5xx on first request instead of a startup crash, which is exactly what the shim was reaching for. `logging` import dropped since it was only used by the shim. - Add `python -u` to the uvicorn invocation in `entrypoint.sh` as a belt-and-suspenders complement to the existing `PYTHONUNBUFFERED=1`. `awk '{...; fflush()}'` in the pipe was already line-flushing; `-u` is not overridable by user code. Railway saw only ~15 log lines over 9h during the 04-21 incident because of pipe-buffering through a previous `sed` formulation. - Update `showcase/scripts/fail-baseline.json`'s `validatePinsFailHash` to match the new `ag-ui-crewai` spec string in the FAIL set. Pin-drift FAIL count is unchanged (110); only the hashed line text changed. Root-cause context: Notion [Showcase starters: silent-hang vulnerability class](https://www.notion.so/3493aa3818528191bc08f8b2f3fb1e88). ## Test plan - [x] `pip install -r requirements.txt` resolves `ag-ui-crewai==0.2.0` (verified locally in a fresh 3.12 venv; no dep conflicts with `crewai==0.130.0` or `crewai-tools`). - [x] Agent starts cleanly under `python -u -m uvicorn agent_server:app`; `/health` returns 200 `{"status":"ok"}` (verified locally). - [x] Agent import no longer references the `crewai.cli.crew_chat` hardening shim; `ag_ui_crewai.endpoint.add_crewai_crew_fastapi_endpoint` registers without pre-bind LLM calls (verified via FastAPI route inspection after import). - [x] `pytest tests/python/` — 94/94 pass. - [x] `pnpm -C showcase/scripts test` — 1079/1079 pass. - [x] `validate-pins.ts` — FAIL count matches baseline (110); new hash committed to `fail-baseline.json`. - [ ] `/api/smoke` completes against live upstream on Railway (requires deploy). - [ ] Railway deploy logs show uvicorn request lines (not just entrypoint banner). - [ ] Watchdog from CopilotKit#4114 still loops. ## Intentionally out-of-scope (follow-ups) - `showcase/starters/crewai-crews/` parity backport (starter still carries the 0.1.5 pin and the shim). - The 14-starter watchdog generalisation — tracked in the Notion proposal above.
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
ag-ui-crewai 0.1.5 contains three defects that took down crewai-crews in prod for 9h on 2026-04-21: unguarded .messages access, orphan asyncio.create_task, and sync completion() calls. All three are fixed in 0.2.0 (ag-ui PR CopilotKit#1550). Showcase already moved to 0.2.x in PR CopilotKit#4115. Dojo is the user-facing reference — leaving it on 0.1.5 means every reader clones the broken version. This closes the validate-pins drift. Pip dry-run resolves ag-ui-crewai-0.2.0 cleanly with no conflicts. Grep of examples/integrations/crewai-crews/ confirms no consumer code touches the 0.1.5 defect paths (.state.messages, create_task, completion sync).
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
…t#4122) ## Summary Bump the Dojo-side `ag-ui-crewai` pin to match the showcase counterpart ([CopilotKit#4115](CopilotKit#4115)) and close the validate-pins drift. - `examples/integrations/crewai-crews/agent/requirements.txt`: `ag-ui-crewai>=0.1.5` → `ag-ui-crewai>=0.2.0,<0.3.0` ## Why `ag-ui-crewai` 0.1.5 has three known defects that took down crewai-crews in prod for 9h on 2026-04-21: 1. Unguarded `.messages` access on state 2. Orphan `asyncio.create_task` (fire-and-forget without tracking) 3. Sync `completion(` call in an async path All three are fixed upstream in ag-ui PR [CopilotKit#1550](ag-ui-protocol/ag-ui#1550), shipped as ag-ui-crewai `0.2.0`. Showcase already moved to `0.2.x` in [CopilotKit#4115](CopilotKit#4115) (merged today). Dojo is the user-facing reference repo — leaving it on `0.1.5` means every reader clones the broken version. ## Pre-flight verification ### Pip resolve (Python 3.12 venv, `pip install --dry-run`) Clean resolution. Picked `ag-ui-crewai-0.2.0` alongside `ag-ui-protocol-0.1.17`, `crewai-0.130.0`, `crewai-tools-0.47.1`. No conflicts reported. Relevant tail of resolver output: ``` Would install ... ag-ui-crewai-0.2.0 ag-ui-protocol-0.1.17 crewai-0.130.0 crewai-tools-0.47.1 ... ``` ### Consumer code audit Grepped `examples/integrations/crewai-crews/` for any pattern matching the 0.1.5 defect paths: - `\.state\.messages` / `state\[.messages.\]` → no matches - `source\.state\.messages` → no matches - `asyncio\.create_task` → no matches - `crewai\.completion\(` / `litellm\.completion\(` → no matches - `messages|create_task|completion` across the whole `agent/` directory → no matches The Dojo integration consists of `server.py`, `crew.py`, `main.py`, `tools/custom_tool.py` — none of them directly access `.state.messages`, schedule orphan tasks, or invoke sync `completion()`. The 0.2.0 bump is purely a transitive fix; no consumer-side code changes are needed. ## Test plan - [x] `pip install --dry-run -r examples/integrations/crewai-crews/agent/requirements.txt` resolves cleanly (Python 3.12) - [x] Grep confirms no consumer code hits 0.1.5 defect paths - [ ] validate-pins CI job goes green (drift closed against showcase) - [ ] Basic CrewAI flow runs in the dev environment against the updated pin ## Related - Showcase counterpart: [CopilotKit#4115](CopilotKit#4115) - Upstream fix: [ag-ui-protocol/ag-ui#1550](ag-ui-protocol/ag-ui#1550)
This branch was successfully deployed
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.
set text area within the input box to transparent background