Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit ca75193

Browse files
committed
chore: Code quality improvements and CHANGELOG update
- Fix unused imports (getContext, sessionContext) - Update CHANGELOG with v5.1.2 release notes - Maintain clean codebase standards
1 parent 8f539a9 commit ca75193

5 files changed

Lines changed: 24 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## [5.1.2] - 2026-01-14
4+
5+
### Fixed
6+
7+
- Goal validation prompt issues causing JSON parse errors and stuck state
8+
- Agents now properly understand that goal_validate() is available after goal_done()
9+
- Removed problematic prompt injection during tool execution that caused conflicts
10+
11+
### Changed
12+
13+
- Enhanced goal_done() response with clear messaging about goal_validate() availability
14+
- Improved goal_validate tool description for better agent understanding
15+
- Better error handling in goal validation workflow
16+
17+
### Code Quality
18+
19+
- Removed unused imports (getContext, sessionContext)
20+
- Fixed linting errors in packages/goals/index.ts and src/plugin.ts
21+
322
## [5.1.0] - 2026-01-14
423

524
### Added

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/goals/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import type { Plugin, PluginInput, Goal, GoalManagement as IGoalManagement } from "../tools/types.js";
77
import { createLogger } from "../tools/logger.js";
8-
import { updateContext, getContext } from "../tools/session-context.js";
8+
import { updateContext } from "../tools/session-context.js";
99
import { getEffectiveConfig } from "../../config.js";
1010

1111
// Get debug level from config - use silent if debug is disabled

packages/tools/session-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function updateContext(
2424
/**
2525
* Get session context
2626
*/
27-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
27+
2828
export function getContext(sessionID: string): SessionContext {
2929
return sessionContexts.get(sessionID) || {};
3030
}

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { createTaskContinuation } from "./goal/continuation.js";
1111
import { createGoalManagement } from "./goal/management.js";
1212
import { createGoalTools } from "./tools/goal/index.js";
1313
import { createGoalContextInjection } from "./goal-context-injection.js";
14-
import { initSessionContext, sessionContext } from "./session-context.js";
14+
import { initSessionContext } from "./session-context.js";
1515

1616
/**
1717
* Agent Loop Plugin

0 commit comments

Comments
 (0)