Repository navigation
fix(cli): forms accept file questions (questions add, create) - #156
Merged
Merged
Conversation
## Summary
`dailybot form questions add --type file` failed before reaching the
server ("Invalid question type 'file'"), so an agent couldn't add a File
question (for example an optional Screenshot) to a table. The API has
accepted `file` for forms since its file-question release and refuses it
on check-ins.
## Change Log
- New FORM_QUESTION_TYPES (the four types plus file); check-ins keep
VALID_QUESTION_TYPES
- build_question / parse_questions_file / build_questions_interactively
take allowed_types; form questions add and form create pass the form set
- A file question can't be the blocker (fails fast, as in the web editor)
- --type help, examples, the invalid_question_type message, README and
API reference mention file (forms only)
- 13 tests: helper rules, form add/create with file, blocker refusal,
help text, check-ins still refusing file
## Risks
- None for check-ins: their allowed set is unchanged
- The vendored dailybot skill pack still lists four types; it updates
from its own repo
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AY6kxNxkCZG2pPJSh1Bxer
xergioalex
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dailybot form questions add --type filefailed before reaching the server ("Invalid question type 'file'. Choose from: text, multiple_choice, boolean, numeric."), so an agent couldn't add a File question to a table. The API acceptsfilefor forms (records) and refuses it on check-ins, and the web editor already offers it.Reported in Product feedback (v4): https://app.dailybot.com/forms/f5893fa4-d2eb-464c-afc8-86fd4bbc3619/responses/cb7c2ca0-1f57-4bd1-be39-3d74e1617417 (found while adding an optional Screenshot field to that table).
Change Log
FORM_QUESTION_TYPES= the four types +file; check-ins keepVALID_QUESTION_TYPESunchanged.build_question,parse_questions_fileandbuild_questions_interactivelytakeallowed_types;form questions addandform create(--questions-file/--interactive) pass the form set.filequestion can't be the blocker: the CLI fails fast with a clear message (same rule as the web editor).--typehelp + an example onform questions add,form questions edithelp, theinvalid_question_typemessage, README anddocs/API_REFERENCE.mdmentionfile(forms only).Tests
form questions add --type file,--blockerrefusal, help text,form createwith a file question,checkin questions add --type filestill refused.ruff check,ruff format --check,mypy dailybot_cliclean.Risks
dailybotskill pack (.agents/skills/dailybot/forms/SKILL.md) still lists four types; it updates from its own repo.form submit's guided prompts don't upload files yet (a File question there is answered through the API's attachments endpoint).🤖 Generated with Claude Code
https://claude.ai/code/session_01AY6kxNxkCZG2pPJSh1Bxer