Files
cleveragents-core/features/session_create_error.feature

39 lines
2.0 KiB
Gherkin

# TDD tests for bug #570 — expected to fail until the DI container fix lands.
# The @tdd_expected_fail tag causes the test framework to invert pass/fail so
# these scenarios pass CI while the bug is unfixed. The bug-fix developer
# removes @tdd_expected_fail (keeping @tdd_bug and @tdd_bug_570) once the fix
# is applied.
Feature: Session create command resolves DI container wiring
As a developer using the agents CLI
I want "agents session create" to work after a fresh init
So that I can create interactive sessions without a DI container error
Background:
Given a session-create-error CLI runner using the real DI path
@tdd_bug @tdd_bug_570 @tdd_expected_fail
Scenario: Session create produces a new session
When I invoke session-create-error create with no arguments
Then the session-create-error command should exit successfully
And the session-create-error output should contain "session_id:"
@tdd_bug @tdd_bug_570 @tdd_expected_fail
Scenario: Created session persists and can be retrieved
When I invoke session-create-error create with no arguments
Then the session-create-error command should exit successfully
When I invoke session-create-error list to verify persistence
Then the session-create-error list should show at least one session
@tdd_bug @tdd_bug_570 @tdd_expected_fail
Scenario: Session create with custom actor succeeds
When I invoke session-create-error create with actor "openai/gpt-4"
Then the session-create-error command should exit successfully
And the session-create-error output should contain "openai/gpt-4"
And the session-create-error output should contain "session_id:"
@tdd_bug @tdd_bug_570 @tdd_expected_fail
Scenario: Session create with arbitrary actor name succeeds
When I invoke session-create-error create with actor "nonexistent/bogus-actor-999"
Then the session-create-error command should exit successfully
And the session-create-error output should contain "nonexistent/bogus-actor-999"