fix: add a return block at the end of sessionResetsAt#21
Conversation
resolves the unwanted export error
Summary by BeetleThis PR addresses a critical syntax error and optimizes the base system prompt for token efficiency. The first commit fixes a malformed function export in the chat context utility that was causing build/runtime errors, while the second commit refines the base prompt to reduce unnecessary token usage by making server information responses more contextual. 📁 File Changes Summary (Consolidated across all commits):
Total Changes: 3 files changed, +13 additions, -8 deletions 🗺️ Walkthrough:graph TD
A["User sends /askai command"] --> B["Load BASE_SYSTEM_PROMPT"]
B --> C{"Server info requested?"}
C -->|"Explicitly asked"| D["Include DevHub details"]
C -->|"Not asked"| E["Skip server info"]
D --> F["Build conversation context"]
E --> F
F --> G["Check session budget"]
G --> H["sessionResetsAt called"]
H --> I["Returns session.startedAt + duration"]
I --> J["sessionTimeRemaining called"]
J --> K["Calculates remaining time"]
K --> L["Process AI request"]
style H fill:#90EE90
style I fill:#90EE90
style B fill:#FFE4B5
style C fill:#FFE4B5
🎯 Key Changes:
📊 Impact Assessment:
⚙️ SettingsSeverity Threshold: 📖 User Guide
|
|
✅ You're good to merge this PR! No issues found. Great job! Settings⚙️ SettingsSeverity Threshold: 📖 User Guide
|
sessionResetsAt, fixes the syntax error