How it works
When the drawer opens, Pastures captures the current Rancher URL pathname and resolves it to a route name. A mapping inaiContext.ts associates each route with a set of suggested questions tailored to that page’s domain.
The suggested questions appear as clickable pills in the empty state of the drawer. Clicking one immediately sends it as a query.
Page-specific suggestions
Each Pastures page maps to a unique set of questions:Operations
Operations
- “Is my cluster ready to upgrade to the latest K3s?”
- “What failed in the last CIS benchmark scan?”
Infrastructure
Infrastructure
- “Which GPU nodes are over 80% utilization?”
- “How do I fix Longhorn replica degradation?”
Advisories
Advisories
- “What are the critical advisories for this cluster?”
- “How do I fix the etcd single-member warning?”
Overview (Cluster Intelligence)
Overview (Cluster Intelligence)
- “What is the health score of this cluster?”
- “Are there any open issues across my fleet?”
Harvester
Harvester
- “Why is my VM stuck in Starting state?”
- “How do I restore a VM from snapshot?”
Workloads
Workloads
- “Why is my pod in CrashLoopBackOff?”
- “How do I debug OOMKilled containers?”
AI Agents
AI Agents
- “How do I configure a NemoClaw gateway?”
- “What sandbox policies are available?”
Projects & Quotas
Projects & Quotas
- “How do I set GPU quotas for a project?”
- “What are recommended resource limits for staging?”
Access Control
Access Control
- “Who has cluster-admin access?”
- “How do I create a read-only role for auditors?”
Route resolution
The route name is derived from the Rancher URL pathname. Pastures uses the Vue Router route name (e.g.,c-cluster-pastures-operations) as the key into the context map.
Context awareness works in all modes — Oracle, BYO model, and demo. The suggested questions are determined by the page, not the AI backend.