-
Notifications
You must be signed in to change notification settings - Fork 0
Fix windows bug #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix windows bug #19
Conversation
|
""" WalkthroughThe Streamlit UI's Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant StreamlitUI
participant WorkflowManager
User->>StreamlitUI: Clicks "Start Workflow"
StreamlitUI->>WorkflowManager: start_workflow_function()
WorkflowManager->>WorkflowManager: Check if pid_dir exists
alt pid_dir exists
WorkflowManager-->>StreamlitUI: Return immediately
else pid_dir does not exist
WorkflowManager->>WorkflowManager: Start workflow process
end
StreamlitUI->>StreamlitUI: Wait 3 seconds
StreamlitUI->>StreamlitUI: st.rerun()
Poem
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/workflow/WorkflowManager.py (1)
35-36: Fix formatting issue and approve the guard clause logic.The guard clause effectively prevents multiple concurrent workflow starts, which could help resolve Windows-specific timing issues with log file access. However, there's a formatting violation.
Apply this diff to fix the formatting:
- # Catch double presses of the button while app is in frozen state - if self.executor.pid_dir.exists(): return + # Catch double presses of the button while app is in frozen state + if self.executor.pid_dir.exists(): + return🧰 Tools
🪛 Ruff (0.11.9)
36-36: Multiple statements on one line (colon)
(E701)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/workflow/StreamlitUI.py(1 hunks)src/workflow/WorkflowManager.py(1 hunks)
🧰 Additional context used
🪛 Ruff (0.11.9)
src/workflow/WorkflowManager.py
36-36: Multiple statements on one line (colon)
(E701)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: build-full-app
- GitHub Check: build-openms
🔇 Additional comments (1)
src/workflow/StreamlitUI.py (1)
1007-1007: LGTM! This delay addresses the Windows log display issue.The 3-second delay allows sufficient time for the workflow process to start and create log files before the UI refreshes. This is particularly important on Windows where file system operations and process startup can have different timing characteristics compared to other operating systems. This change effectively fixes the bug where logs weren't displayed on Windows.
Fixes the bug that the log is not displayed on windows.
Summary by CodeRabbit