-
Notifications
You must be signed in to change notification settings - Fork 577
Double-Check Mode #237
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
Closed
NomadicDaddy
wants to merge
1
commit into
AutoMaker-Org:main
from
NomadicDaddy:feature/double-check-mode
Closed
Double-Check Mode #237
Changes from all commits
Commits
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
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
37 changes: 37 additions & 0 deletions
37
apps/server/src/routes/auto-mode/routes/double-check-feature.ts
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,37 @@ | ||
| /** | ||
| * POST /double-check-feature endpoint - Run double-check verification on a feature | ||
| */ | ||
|
|
||
| import type { Request, Response } from 'express'; | ||
| import type { AutoModeService } from '../../../services/auto-mode-service.js'; | ||
| import { getErrorMessage, logError } from '../common.js'; | ||
|
|
||
| export function createDoubleCheckFeatureHandler(autoModeService: AutoModeService) { | ||
| return async (req: Request, res: Response): Promise<void> => { | ||
| try { | ||
| const { projectPath, featureId } = req.body as { | ||
| projectPath: string; | ||
| featureId: string; | ||
| }; | ||
|
|
||
| if (!projectPath || !featureId) { | ||
| res.status(400).json({ | ||
| success: false, | ||
| error: 'projectPath and featureId are required', | ||
| }); | ||
| return; | ||
| } | ||
|
|
||
| const result = await autoModeService.doubleCheckFeature(projectPath, featureId); | ||
| res.json({ | ||
| success: true, | ||
| passed: result.passed, | ||
| summary: result.summary, | ||
| discrepancies: result.discrepancies, | ||
| }); | ||
| } catch (error) { | ||
| logError(error, 'Double-check feature failed'); | ||
| res.status(500).json({ success: false, error: getErrorMessage(error) }); | ||
| } | ||
| }; | ||
| } |
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.
🧩 Analysis chain
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 618
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 1280
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 2225
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 5577
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 3172
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 1037
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 2069
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 2258
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 3043
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 32541
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 7607
Endpoint returns success without performing any action.
The
/modelendpoint acceptssessionIdandmodelparameters but never uses them—the_agentServiceparameter (underscore-prefixed) is unused, and the handler returns{ success: true, message: '...' }unconditionally without callingsetSessionModel(). This is deceptive: clients will believe the model was changed when it wasn't.The
AgentService.setSessionModel()method exists and works correctly (confirmed in lines 502-510), but the endpoint never invokes it. The model parameter CAN be changed via the/sendendpoint (lines 136-138), which properly updates the session model—but the dedicated/modelendpoint is non-functional and should either be completed or removed.🤖 Prompt for AI Agents