Skip to content

feat: record local mode runs in activity log#158

Merged
claude[bot] merged 1 commit intomainfrom
claude/issue-155-20260227-2112
Feb 27, 2026
Merged

feat: record local mode runs in activity log#158
claude[bot] merged 1 commit intomainfrom
claude/issue-155-20260227-2112

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Feb 27, 2026

Summary

  • Adds activitylog.Append call at the end of runLocalMode in cmd/run.go
  • Local-mode context bomb injections are now tracked identically to API-mode injections
  • Makes local-mode usage visible in uncompact report

Details

runLocalMode was emitting the context bomb and writing to the display cache, but silently skipping the activity log. This meant users running in local mode (e.g. before configuring an API key) would show no activity in uncompact report.

The fix adds the same activitylog.Append pattern used by runHandler (API mode) and runWithoutCache. No store.LogInjection call is needed since local mode has no cache store.

Closes #155

Generated with Claude Code

Add activitylog.Append call at the end of runLocalMode so that local-mode
context bomb injections are tracked the same way as API-mode injections.
This makes local-mode usage visible in `uncompact report`.

Fixes #155

Co-Authored-By: Grey Newell <greyshipscode@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: claude[bot] <claude[bot]@users.noreply.github.com>
@claude claude bot merged commit fab4cd9 into main Feb 27, 2026
1 check passed
@claude claude bot deleted the claude/issue-155-20260227-2112 branch February 27, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enhancement: local mode runs are not recorded in the activity log

0 participants