Merged
Conversation
Active sessions were overwriting the original prompt with generic PostToolUse labels, so Hivemind could only report Tool: Bash for live shell work. The hook now keeps the user-prompt task name while storing a redacted command or path detail in latestTaskPreview. Constraint: Hivemind state is shared across agents, so shell previews redact obvious secret env assignments and secret-like flags Rejected: Parse shell commands into semantic tasks | too brittle for arbitrary Bash input Confidence: high Scope-risk: narrow Tested: pnpm --filter @colony/hooks test; pnpm --filter @colony/hooks typecheck; pnpm --filter @colony/hooks build; pnpm exec biome check packages/hooks/src/active-session.ts packages/hooks/test/runner.test.ts; git diff --check Not-tested: live Claude Code hook event payload outside local regression fixture
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Automated by gx branch finish (PR flow).