Repository navigation
fix(#1413): write ROCKETRIDE_URI/APIKEY to .env in local mode + add llms.txt (#586) - #1450
Pankajsharma99max wants to merge 8 commits into
Conversation
…nv in local engine mode Local engine starts on a dynamic port (--port=0). The port is only known after the engine process starts and Uvicorn logs the ready message. Add EngineLocal.writeLocalEnv(uri, apiKey) which upserts ROCKETRIDE_URI and ROCKETRIDE_APIKEY into the workspace root .env file after the engine emits its 'ready' status. Behaviour: - If .env doesn't exist, it is created with just the two keys - If .env already exists, only the two keys are updated; all other variables are preserved (upsert, not overwrite) - Errors are logged as warnings and never propagate (non-fatal) Also correct ROCKETRIDE_QUICKSTART.md, which falsely claimed the extension 'automatically creates/updates .env with ROCKETRIDE_URI and ROCKETRIDE_APIKEY' for all modes. Add a per-mode table explaining the actual behavior and a note that in local mode .env is only written after the engine has started. Closes rocketride-org#1413
…-and-llmstxt fix(rocketride-org#1413): write ROCKETRIDE_URI/APIKEY to .env in local mode + add llms.txt (rocketride-org#586)
🤖 Internal: Discord sync markerAuto-managed by the Discord notification workflow. Stores the linked Discord message ID. Do not edit or delete. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe PR writes local engine connection details into the workspace Changes.env auto-write feature and documentation
Node schema and Chroma compatibility
Estimated code review effort: 4 (Complex) | ~60 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…y drop zero-argument MCP tools Fixes rocketride-org#1404 Two independent defects combined to cause this: 1. `tool_mcp_client.IGlobal.list_namespaced_tools()` exposed a tool's JSON schema under the key `input_schema` (snake_case), but the canonical `ToolsBase.ToolDescriptor` contract in `packages/ai/src/ai/common/tools.py` -- and every framework driver that reads it -- expects `inputSchema` (camelCase). The mismatch meant `td.get('inputSchema')` always returned `None` for MCP-sourced tools, silently discarding the real schema before it ever reached the driver. 2. `agent_langchain.langchain._make_args_schema` treated "no schema info at all" and "schema explicitly declares zero properties" as the same case, falling back to the permissive `_ToolInput` (which advertises a generic `input` field) for both. A genuinely zero-argument tool therefore looked to the model like it required an `input` argument -- which is what caused reasoning models to either skip the tool or call it with an argument the MCP server didn't expect and rejected. Fix: correct the key mismatch, and give explicitly zero-argument tools a strict, field-free `_NoArgsInput` schema (rendered as `{"type":"object","properties":{}}`) instead of conflating them with the "unknown schema" fallback. Added regression tests covering both defects; verified they fail against the pre-fix code and pass after the fix.
…e' crash Fixes rocketride-org#1405 `list_collections()`'s return shape differs across chromadb client versions: newer clients (>=0.6) return a list of collection name strings, older clients (<0.6) return a list of Collection objects exposing `.name`. `_doesCollectionExist` compared `self.collection` (a str) directly against the raw list, which only worked for the string-returning shape -- against an older server it silently evaluated to "collection does not exist" even when it did, and a raw client/server incompatibility during `list_collections()` (e.g. `KeyError('_type')`) propagated as an opaque error with no indication of the real cause. Downstream, `flush()` called `self.collectionObj.delete(...)` / `.upsert(...)` without checking whether `collectionObj` had actually been resolved, so a prior silent failure surfaced later as an opaque `AttributeError: 'NoneType' object has no attribute 'delete'` instead of an actionable message -- appearing to the user as "0 done, 1 error" during ingestion with no clue why. Fix: - Normalize `list_collections()` results to a set of names regardless of whether the client returns strings or Collection-like objects. - Wrap `list_collections()` failures with a message naming the host/port and pointing at a likely version mismatch. - Fail fast in `flush()` with a clear, actionable error when the collection was never resolved, instead of letting it crash deep inside a per-chunk write. Added regression tests covering both the version-shape bug and the flush() guard; verified they fail against the pre-fix code and pass after the fix.
Fixes rocketride-org#1404 -- reasoning-model agents silently drop zero-argument MCP tools. See PR rocketride-org#1451: rocketride-org#1451
Fixes rocketride-org#1405 -- Chroma version incompatibility fails silently + NoneType 'delete' crash. See PR rocketride-org#1452: rocketride-org#1452
…args Addresses review feedback on rocketride-org#1404 (PR rocketride-org#1451). `input_schema.get('properties', {})` collapsed two different schemas into the same case: `{"type": "object"}` (properties key absent -- an unconstrained object shape) and `{"type": "object", "properties": {}}` (properties key explicitly present and empty -- a genuine zero-argument declaration). Both produced an empty dict from `.get(..., {})` and were routed to the new strict `_NoArgsInput` schema, so a tool with an unconstrained/unknown argument shape would incorrectly be told it takes no arguments at all. Now `'properties' not in input_schema` is checked explicitly and routed to the permissive `_ToolInput` fallback (same as "no schema info at all"), leaving `_NoArgsInput` for schemas that explicitly declare zero properties. Added a regression test for the missing-properties-key case; verified it fails against the pre-fix logic and passes after.
Pulls in the CodeRabbit review fix for rocketride-org#1404 (missing-properties-key edge case). See PR rocketride-org#1451: rocketride-org#1451
|
Closing this in favor of #1461. This PR's head branch was my fork's #1461 is opened from a dedicated branch containing only the original single commit ( |
What & Why
Two independent fixes in one PR.
#1413 — Local engine never writes ROCKETRIDE_URI/APIKEY to .env
Root cause:
ROCKETRIDE_QUICKSTART.mdclaims the extension "automatically creates/updates .env" for all modes. This is false for local mode — the engine uses--port=0so the port is only known after the subprocess starts. Nothing in the extension ever wrote to .env for local mode.Fix —
apps/vscode/src/engine/local/engine-local.ts:writeLocalEnv(uri, apiKey)called instart()after the engine emitsreadyROCKETRIDE_URIandROCKETRIDE_APIKEYinto workspace root.envFix —
docs/agents/ROCKETRIDE_QUICKSTART.md:#586 — Add llms.txt / llms-full.txt
Adds two root-level files per the llmstxt.org standard:
llms.txt— concise summary: what RocketRide is, links, quick-start, modesllms-full.txt— extended: architecture, pipeline JSON, SDK patterns, auth flowStatic hand-authored files. CI automation deferred per issue discussion.
Files Changed
apps/vscode/src/engine/local/engine-local.tswriteLocalEnv()+ call instart()docs/agents/ROCKETRIDE_QUICKSTART.mdllms.txtllms-full.txtTesting