mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Fix type issues in FCOMessageHandler
- Change getCurrentCline() to getCurrentTask() - Fix Promise return type in test mock 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
877404aab9
commit
709a7029da
2 changed files with 4 additions and 2 deletions
|
|
@ -413,7 +413,7 @@ export class FCOMessageHandler {
|
|||
|
||||
// Detect enable event (transition from false to true) during active task
|
||||
if (!previousFilesChangedEnabled && filesChangedEnabled) {
|
||||
const currentTask = this.provider.getCurrentCline()
|
||||
const currentTask = this.provider.getCurrentTask()
|
||||
if (currentTask && currentTask.taskId) {
|
||||
try {
|
||||
await this.handleFCOEnableResetBaseline(currentTask)
|
||||
|
|
|
|||
|
|
@ -75,7 +75,9 @@ describe("FCOMessageHandler", () => {
|
|||
vi.clearAllMocks()
|
||||
|
||||
// Setup getCheckpointService mock
|
||||
vi.mocked(getCheckpointService).mockImplementation((task) => task?.checkpointService || undefined)
|
||||
vi.mocked(getCheckpointService).mockImplementation((task) =>
|
||||
Promise.resolve(task?.checkpointService || undefined),
|
||||
)
|
||||
|
||||
// Reset checkpointSave mock
|
||||
vi.mocked(checkpointSave).mockReset()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue