sandbox-notebookllamalm/server.log
DJP ce09d57cef Add background podcast generation and UX improvements
Features:
- Background podcast generation (navigate away while processing!)
- Podcast status tracking (pending/in_progress/completed/failed)
- Database-backed task queue (no external dependencies)
- Podcast length control with slider (5-30 minutes)
- Fixed podcast delete to update UI immediately
- Collapsible source citations in chat (dropdown with count)
- Real-time status checking for background tasks

Technical:
- Created background_tasks.py module
- Added background_tasks table to database
- Threading-based background execution
- Task status tracking: PENDING, IN_PROGRESS, COMPLETED, FAILED
- Proper database session management in shared notebooks
- Fixed SQLAlchemy DetachedInstanceError in sharing view

UX Improvements:
- "Generate in Background" button instead of blocking
- Status indicator shows when podcast is generating
- "Check Status" refresh button
- Sources collapsed by default with count badge
- Podcast delete shows success message before rerun
- Can navigate away during long-running operations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-01 17:47:10 -04:00

46 lines
4.1 KiB
Text

[10/01/25 17:08:12] INFO Starting MCP server 'MCP For server.py:1358
NotebookLM' with transport
'streamable-http' on
http://127.0.0.1:8000/mcp/
INFO:FastMCP.fastmcp.server.server:Starting MCP server 'MCP For NotebookLM' with transport 'streamable-http' on http://127.0.0.1:8000/mcp/
/Users/daveporter/notebookllama/notebookllama/.venv/lib/python3.13/site-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
warnings.warn( # deprecated in 14.0 - 2024-11-09
/Users/daveporter/notebookllama/notebookllama/.venv/lib/python3.13/site-packages/uvicorn/protocols/websockets/websockets_impl.py:17: DeprecationWarning: websockets.server.WebSocketServerProtocol is deprecated
from websockets.server import WebSocketServerProtocol
INFO: Started server process [9983]
INFO: Waiting for application startup.
INFO:mcp.server.streamable_http_manager:StreamableHTTP session manager started
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:56539 - "POST /mcp HTTP/1.1" 307 Temporary Redirect
INFO:mcp.server.streamable_http_manager:Created new transport with session ID: a97441f5cebf4f8b9de93a1c59333123
INFO: 127.0.0.1:56539 - "POST /mcp/ HTTP/1.1" 200 OK
INFO: 127.0.0.1:56542 - "POST /mcp HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:56543 - "GET /mcp HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:56542 - "POST /mcp/ HTTP/1.1" 202 Accepted
INFO: 127.0.0.1:56543 - "GET /mcp/ HTTP/1.1" 200 OK
INFO: 127.0.0.1:56545 - "POST /mcp HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:56545 - "POST /mcp/ HTTP/1.1" 200 OK
INFO:mcp.server.lowlevel.server:Processing request of type CallToolRequest
INFO:httpx:HTTP Request: POST https://api.cloud.llamaindex.ai/api/v1/pipelines/884e242c-86dd-4824-8347-e6dfb91d98dc/retrieve "HTTP/1.1 200 OK"
INFO:httpx:HTTP Request: POST https://api.openai.com/v1/responses "HTTP/1.1 200 OK"
INFO:mcp.server.lowlevel.server:Warning: PydanticDeprecatedSince20: The `parse_obj` method is deprecated; use `model_validate` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/
INFO: 127.0.0.1:56552 - "DELETE /mcp HTTP/1.1" 307 Temporary Redirect
INFO:mcp.server.streamable_http:Terminating session: a97441f5cebf4f8b9de93a1c59333123
INFO: 127.0.0.1:56552 - "DELETE /mcp/ HTTP/1.1" 200 OK
INFO: 127.0.0.1:58570 - "POST /mcp HTTP/1.1" 307 Temporary Redirect
INFO:mcp.server.streamable_http_manager:Created new transport with session ID: 403d8c9b18ba43e98eb1ca532b7fbe2d
INFO: 127.0.0.1:58570 - "POST /mcp/ HTTP/1.1" 200 OK
INFO: 127.0.0.1:58573 - "POST /mcp HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:58574 - "GET /mcp HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:58573 - "POST /mcp/ HTTP/1.1" 202 Accepted
INFO: 127.0.0.1:58574 - "GET /mcp/ HTTP/1.1" 200 OK
INFO: 127.0.0.1:58576 - "POST /mcp HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:58576 - "POST /mcp/ HTTP/1.1" 200 OK
INFO:mcp.server.lowlevel.server:Processing request of type CallToolRequest
INFO:httpx:HTTP Request: POST https://api.cloud.llamaindex.ai/api/v1/pipelines/884e242c-86dd-4824-8347-e6dfb91d98dc/retrieve "HTTP/1.1 200 OK"
INFO:httpx:HTTP Request: POST https://api.openai.com/v1/responses "HTTP/1.1 200 OK"
INFO:mcp.server.lowlevel.server:Warning: PydanticDeprecatedSince20: The `parse_obj` method is deprecated; use `model_validate` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/
INFO: 127.0.0.1:58582 - "DELETE /mcp HTTP/1.1" 307 Temporary Redirect
INFO:mcp.server.streamable_http:Terminating session: 403d8c9b18ba43e98eb1ca532b7fbe2d
INFO: 127.0.0.1:58582 - "DELETE /mcp/ HTTP/1.1" 200 OK