Skip to content

feat: add --conversation-id to chat and CONVERSATION_NOT_FOUND error … - #34

Merged
macieju-opera merged 1 commit into
mainfrom
feat/conversation-id-in-chat
Sep 1, 2026
Merged

feat: add --conversation-id to chat and CONVERSATION_NOT_FOUND error …#34
macieju-opera merged 1 commit into
mainfrom
feat/conversation-id-in-chat

Conversation

@mateuszk-opera

Copy link
Copy Markdown
Contributor

…code

Support continuing existing AI conversations via --conversation-id/-c flag, and surface expired/missing conversations with a dedicated error code.

…code

Support continuing existing AI conversations via --conversation-id/-c flag,
and surface expired/missing conversations with a dedicated error code.
@mateuszk-opera
mateuszk-opera force-pushed the feat/conversation-id-in-chat branch from 5f1d776 to d40e603 Compare September 1, 2026 11:37

@macieju-opera macieju-opera left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Clean implementation with good backward-compat handling.

  • --conversation-id / -c flag parsing is correct, including the = syntax error message
  • JSON response parsing with fallback to raw text handles the transition period well
  • Shape validation guards against malformed responses from the extension
  • Exit code 2 for CONVERSATION_NOT_FOUND is consistent with NOT_FOUND
  • Test coverage is thorough — new parseChatArgs cases, JSON shape validation, and exit code table

One minor observation (not blocking): the isValidShape type guard in the test file duplicates the inline check in handleChat. If the production shape ever changes, the test guard would need a manual update. A shared helper would be cleaner, but it's fine as-is given the test is covering the contract from both sides.

@macieju-opera
macieju-opera merged commit 62e51e2 into main Sep 1, 2026
2 checks passed
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