Skip to content

test: 6 additional tests for global room, arg validation, messaging, status#4

Open
hai-pilgrim wants to merge 2 commits intomarksverdhei:mainfrom
hai-pilgrim:test/extra-coverage
Open

test: 6 additional tests for global room, arg validation, messaging, status#4
hai-pilgrim wants to merge 2 commits intomarksverdhei:mainfrom
hai-pilgrim:test/extra-coverage

Conversation

@hai-pilgrim
Copy link
Copy Markdown

Summary

  • Adds 6 new test cases to test_cf.sh, bringing the total from 33 to 39
  • delete-room for a global chatfile (created with -g)
  • delete-room with no argument: exits 1 with Usage message
  • Sending 3 messages then read 20 shows all three in output
  • read N limits output to at most N lines
  • status after join shows Joined: yes
  • create-room -g name result appears in list-rooms output

Test plan

  • 39 tests, all passing: bash test_cf.sh

🤖 Generated with Claude Code

marksverdhei and others added 2 commits March 28, 2026 23:26
Global rooms (in ~/.chatfiles/) now write their session to
\$HOME/.cf_session instead of .cf_session in the CWD. This means
cf commands work from any directory after registering a global room,
fixing the issue where join succeeded but subsequent read/status
calls failed because .cf_session wasn't found in the new CWD.

Local room sessions continue to use .cf_session in the CWD for
directory-scoped isolation.

Closes marksverdhei#2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ge read, status

Covers: delete-room for a global chatfile, delete-room with no argument
(exit 1 + Usage message), sending 3 messages all appear in read output,
read N limits output to N lines, status after join shows "Joined: yes",
create-room -g appears in list-rooms output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants