-
Notifications
You must be signed in to change notification settings - Fork 342
fix: Security vulnerabilities and race conditions from code review #112
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
Open
nioasoft
wants to merge
21
commits into
AutoForgeAI:master
Choose a base branch
from
nioasoft:fix/code-review-security-and-reliability
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1910b96
fix: add robust SQLite connection handling to prevent database corrup…
d43095a
Merge upstream/master with robust database handling
e014b04
feat(ui): add custom theme override system
380aee0
feat: Twitter-style UI theme + Playwright optimization + documentation
8326937
fix: SQLAlchemy PendingRollbackError + MCP support for Expand/Assistant
cfd297b
Merge feat/twitter-ui-theme into main
4099cc5
Merge remote-tracking branch 'upstream/master'
468e59f
fix: handle 404 errors for deleted assistant conversations
c4531de
Merge branch 'fix/assistant-conversation-404-handling'
2b07625
fix: improve 404 detection for deleted conversations
6629624
Merge branch 'fix/assistant-conversation-404-handling'
9b62fb6
fix: add engine caching to prevent file descriptor leaks
cb9d9c1
Merge remote-tracking branch 'upstream/master'
be173a4
fix: security vulnerabilities and race conditions from code review
b83f8ad
Merge upstream/master to resolve conflicts
65f5efe
fix: UI TypeScript errors and missing dependencies
1cb5b02
feat: add attempt tracking, error logging, and code improvements
a0c9850
fix: remove trailing whitespace from blank lines (lint)
532d78b
fix: update CI to use tests/ directory for security tests
36a9a5b
fix: address CodeRabbit review feedback
6a5341a
fix: address remaining CodeRabbit review feedback
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| """ | ||
| Agent Types Enum | ||
| ================ | ||
|
|
||
| Defines the different types of agents in the system. | ||
| """ | ||
|
|
||
| from enum import Enum | ||
|
|
||
|
|
||
| class AgentType(str, Enum): | ||
| """Types of agents in the autonomous coding system. | ||
|
|
||
| Inherits from str to allow seamless JSON serialization | ||
| and string comparison. | ||
|
|
||
| Usage: | ||
| agent_type = AgentType.CODING | ||
| if agent_type == "coding": # Works due to str inheritance | ||
| ... | ||
| """ | ||
|
|
||
| INITIALIZER = "initializer" | ||
| CODING = "coding" | ||
| TESTING = "testing" | ||
|
|
||
| def __str__(self) -> str: | ||
| """Return the string value for string operations.""" | ||
| return self.value |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Fix markdown linting issue: add language specifier to fenced code block.
The fenced code block is missing a language identifier, which violates markdown linting rules. Since this block contains instructional comments rather than executable code, consider using
textormarkdownas the language specifier.📝 Proposed fix
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)
23-23: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents