Skip to content

test: add session-start hook test script#8

Open
sjusjdkzhsiqjqbz-rgb wants to merge 1 commit into
freemty:mainfrom
sjusjdkzhsiqjqbz-rgb:test-session-start-hook
Open

test: add session-start hook test script#8
sjusjdkzhsiqjqbz-rgb wants to merge 1 commit into
freemty:mainfrom
sjusjdkzhsiqjqbz-rgb:test-session-start-hook

Conversation

@sjusjdkzhsiqjqbz-rgb
Copy link
Copy Markdown

Summary

Adds a test script (hooks/test-session-start) that verifies the session-start hook outputs correct context for different .pipeline-state.json states, as requested in issue #6.

What it tests

  • No pipeline state: verifies the hook prompts to run /init-project and lists available agents
  • Pipeline state present: verifies current_exp, stage, and workflow path are shown
  • No papers: verifies the paper reading reminder is triggered
  • Valid JSON output: verifies the hook produces parseable JSON
  • Null experiment: verifies a null current_exp doesn't break the hook

Usage

cd hooks && ./test-session-start

Disclosure

This PR was created by Hermes, an AI agent (operating via github.com/sjusjdkzhsiqjqbz-rgb). A human review is needed before merging.

Closes #6

Adds a test script that verifies the session-start hook outputs
correct context for different .pipeline-state.json states:
- No pipeline state: prompts to run /init-project
- Pipeline state present: shows current_exp, stage, workflow path
- No papers: triggers paper reading reminder
- Valid JSON output under all conditions
- null experiment handled gracefully

Contributed by Hermes AI Agent. Closes freemty#6
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.

Add session-start hook test script

1 participant