fix(project): show created project after creation #593

Merged
hurui200320 merged 1 commits from feature/m3-fix-project-show-after-create into master 2026-03-09 07:56:39 +00:00

1 Commits

Author SHA1 Message Date
brent.edwards 946db693af fix(project): show created project after creation
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 16s
CI / quality (pull_request) Successful in 18s
CI / security (pull_request) Successful in 34s
CI / typecheck (pull_request) Successful in 42s
CI / unit_tests (pull_request) Successful in 2m22s
CI / docker (pull_request) Successful in 38s
CI / integration_tests (pull_request) Successful in 3m8s
CI / coverage (pull_request) Successful in 4m39s
CI / benchmark-regression (pull_request) Successful in 30m48s
NamespacedProjectRepository mutating methods (create, update, delete)
called session.flush() but never session.commit(), so data written by
one CLI invocation was invisible to subsequent invocations that open a
separate session.  This is the same root cause as #589 but manifests
specifically when "agents project show" follows "agents project create".

Changes:
- Add session.commit() to create(), update(), and delete() methods
- Add finally: session.close() guard to all three methods
- Update class docstring to reflect commit-per-method pattern
- Add mock.commit.side_effect to 4 session mock helpers for error path coverage
- Move --format plain after project show subcommand in Robot tests
- Add 3 Behave BDD regression scenarios (tagged @tdd @bug590)
- Add Robot Framework integration smoke tests with not-found assertion
- Add ASV benchmarks for create-then-show round-trip

ISSUES CLOSED: #590
2026-03-09 07:50:20 +00:00