Skip to content

fix: remove before_session hook startup color#1193

Merged
christso merged 1 commit intomainfrom
fix/before-session-hook-color
Apr 29, 2026
Merged

fix: remove before_session hook startup color#1193
christso merged 1 commit intomainfrom
fix/before-session-hook-color

Conversation

@christso
Copy link
Copy Markdown
Collaborator

Summary

  • remove yellow ANSI styling from the before_session startup log line
  • add a regression test that runs the hook and asserts the startup log is plain text

Red/Green evidence

Red (origin/main)

"\u001b[33mRunning before_session hook: bun -e \"process.stdout.write('HOOK_VAR=ok\\n')\"\u001b[0m"

Green (this branch)

"Running before_session hook: bun -e \"process.stdout.write('HOOK_VAR=ok\\n')\""

Test Plan

  • bun test packages/core/test/evaluation/hooks.test.ts
  • bun run build
  • git push -u origin fix/before-session-hook-color (pre-push hooks)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1797bec
Status: ✅  Deploy successful!
Preview URL: https://06d11675.agentv.pages.dev
Branch Preview URL: https://fix-before-session-hook-colo.agentv.pages.dev

View logs

@christso christso merged commit 5b99e7e into main Apr 29, 2026
4 checks passed
@christso christso deleted the fix/before-session-hook-color branch April 29, 2026 01:16
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.

1 participant