Skip to content

fix(cli): trigger in-process fallback when daemon returns empty string#85

Open
rajkripal wants to merge 1 commit into
mainfrom
fix/context-cli-empty-string-fallback
Open

fix(cli): trigger in-process fallback when daemon returns empty string#85
rajkripal wants to merge 1 commit into
mainfrom
fix/context-cli-empty-string-fallback

Conversation

@rajkripal

Copy link
Copy Markdown
Owner

The daemon returns `{"ok": True, "result": ""}` when it can't generate
context. The old check `if context is None` doesn't catch empty strings,
so the in-process fallback never ran and the user got "No context
generated" despite a working fallback path.

Fix: `if not context` catches both None and empty string.

The daemon returns `{"ok": True, "result": ""}` when it can't generate
context. The old check `if context is None` doesn't catch empty strings,
so the in-process fallback never ran and the user got "No context
generated" despite a working fallback path.

Fix: `if not context` catches both None and empty string.
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.

1 participant