This repository was archived by the owner on Jul 16, 2026. It is now read-only.
Repository navigation
Conversation
…po root
getCoreStatusTool was joining repoDir + 'core-status.json', but the
workspace contract writes core-status.json to WORKSPACE_DIR/state/.
The file at repo root never exists, so the tool always returned
{ status: 'idle', description: 'Core agent is not currently running.' }
even when the proactive loop was actively working.
Fix: join(resolveWorkspace(), 'state', 'core-status.json') — same
resolver that every other WORKSPACE_DIR consumer uses. resolveWorkspace
is already imported in this file.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The tool now reads from resolveWorkspace()/state/core-status.json (not repo-root). Update CORE_STATUS_PATH and ensure state/ dir exists. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
bassilkhilo-ag2
approved these changes
Jun 5, 2026
bassilkhilo-ag2
left a comment
There was a problem hiding this comment.
Clean fix. resolveWorkspace() is already imported at line 12; swapping the hardcoded repo-root path to join(resolveWorkspace(), 'state', 'core-status.json') is exactly right per the workspace contract. The test update correctly adds mkdirSync for the state/ dir and switches to the canonical path. Approved.
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
getCoreStatusTool(get_core_statusvoice tool) constructed the path asjoin(repoDir, 'core-status.json')— the repo rootcore-status.jsonis written toWORKSPACE_DIR/state/core-status.jsonper the workspace contract (CLAUDE.md){ status: 'idle', description: 'Core agent is not currently running.' }— even mid-pass when the loop was actively workingjoin(resolveWorkspace(), 'state', 'core-status.json')—resolveWorkspaceis already imported in this fileTest plan
resolveWorkspacealready imported at line 12 ofinline-tools.ts$WORKSPACE/state/core-status.json)🤖 Generated with Claude Code