Skip to content

Commit b16c47e

Browse files
authored
chore: Fix UI Timeout (#27)
* Update README * Add warning to readme * Increase timeout via fluctuation * Update spelling mistake * Update readme
1 parent 5e0e3ac commit b16c47e

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ cp .env.example .env
159159
```
160160

161161
#### 4. Custom MCP Backend Orchestration [OPTIONAL FOR LOCAL DEV]
162-
Our enhanced orchestration backend, [**XtraMCP**](https://github.com/4ndrelim/academic-paper-mcp-server), is currently closed-source while under active development. <br>
163-
You can run PaperDebugger without it; all core features (chat, formatting, edits, comments) work normally.
162+
Our enhanced orchestration backend, [**XtraMCP**](https://github.com/4ndrelim/academic-paper-mcp-server), is partially in-production but currently closed-source while under active development. If you wish to learn more about XtraMCP backend logic, refer to [/demo/xtramcp/readme.md](./demo/xtramcp/readme.md).<br>
163+
You can still self-host PaperDebugger without it; all core features (chat, formatting, edits, comments) work normally.
164164

165165
Connecting to XtraMCP unlocks:
166166
- research-mode agents,
167167
- structured reviewer-style critique,
168-
- domain-specific revisions tailored to academic writing powered by [XtraGPT](https://huggingface.co/Xtra-Computing/XtraGPT-14B) models
168+
- domain-specific revisions tailored to academic writing powered by [XtraGPT](https://huggingface.co/Xtra-Computing/XtraGPT-14B) models.
169169

170170
We plan to **open-source XtraMCP** once the API stabilizes for community use.
171171

@@ -185,6 +185,8 @@ The server will start on `http://localhost:6060`.
185185
<img src="docs/imgs/run.png" alt="Backend Server Running" style="max-width: 600px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);"/>
186186
</div>
187187

188+
**NOTE**: `"ERROR [AI Client] Failed to initialize XtraMCP session"` <br> is expected if you're hosting locally without XtraMCP or an equivalent MCP orchestration backend.
189+
188190
### Frontend Extension Build
189191

190192
#### Chrome Extension Development

webapp/_webapp/src/components/loading-indicator.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const LoadingIndicator = ({ text = "Thinking", estimatedSeconds = 0, erro
7777

7878
// Calculate progress with natural fluctuation
7979
const baseIncrement = (deltaTime / (estimatedSeconds * 1000)) * 100;
80-
const fluctuation = (Math.random() - 0.5) * 5;
80+
const fluctuation = (Math.random() - 0.5) * 4;
8181
const increment = Math.max(0, baseIncrement + fluctuation);
8282
currentProgress = Math.max(currentProgress, currentProgress + increment);
8383

@@ -113,9 +113,9 @@ export const LoadingIndicator = ({ text = "Thinking", estimatedSeconds = 0, erro
113113

114114
// Get status message based on phase
115115
const getStatusMessage = () => {
116-
if (isTimeout) return "Request timed out";
117-
if (phase === "orange") return "Taking longer than expected";
118-
if (phase === "red") return "Last try";
116+
if (isTimeout) return "Sorry — this request took too long to complete. We're working on improving reliability. You can try waiting a bit longer or refreshing the page. Thanks for your patience.";
117+
if (phase === "orange") return "Synthesizing...";
118+
if (phase === "red") return "Just a moment...";
119119
if (errorMessage && errorMessage.length > 0) return errorMessage;
120120
return text;
121121
};

0 commit comments

Comments
 (0)