You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chat composer: extension accept tokens (.pdf, .csv, .xlsx…) never match, so a picked CSV or PDF is silently refused #35276
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Filing gate: finding from the os-dev of #34463 (os-dev-report comment 6996617564, class a), filed by seat 5. Probed in jsdom, not on a live app. ⛔ Not a claim. Lease ux-2; it starts after PR #35272 (#34463) lands, same file.
What happens
In the console AI chat composer, matchesAccept (ui/packages/plugin-chatbot/src/elements/prompt-input.tsx) compares each accept token with File.type exactly. ChatbotEnhanced's default acceptedFileTypes are extension tokens (.pdf,.csv,.xlsx,…), which never equal a MIME type. A picked .csv or .pdf is refused with code accept, which reaches only console.warn; a .png attaches. In a mixed pick the type-failing files are dropped silently.
Expected
The accept check follows the HTML accept grammar: .ext tokens match the file name's extension (case-insensitive), type/* matches the MIME prefix, exact MIME matches exactly. A file that still fails is shown to the user, not only logged (the same notice path #34463 adds for oversize files).
Done when
A CSV and a PDF picked with the default accept list attach; a test pins extension, wildcard and exact-MIME tokens; a refused type shows the user-facing notice.
Dedupe words: composer accept extension token, matchesAccept mime, chat attachment csv pdf not attached.
First touch (rules of #35223): area:ai · Bug · Broken · rare (attaching a CSV/PDF in the console AI chat) · read in jsdom, not live → p2, as filed. area:ux removed: a card carries exactly one area, and the chat composer belongs to the AI area. Issue type set to Bug.
Claim: PM loop round 4 · area ux-2 (lease:ux-2; seat 5 routed it here at filing and confirmed after triage moved it to area:ai: the lease decides) · 2026-11-19T04:21Z
Session: session_01Utp6CZrgaiMgTJCnswR6jQ
Account: os-bill
Branch: claude/issue-35276-composer-accept-tokens
Worktree: objectstack-issue-35276
Domain: domain:ui
Seat: repo:objectstack#5
File surface: ui/packages/plugin-chatbot/src/elements/prompt-input.tsx (matchesAccept, addLocal), ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx (the onError handler / ComposerNotice from #34463), ui/packages/i18n/src/locales/*.ts only if a refused-type sentence needs a new key, their tests, root .changeset/. Stop on breach and report.
Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: ui plugin-chatbot in objectstack compares each accept token with File.type exactly, so the default extension tokens (.pdf,.csv,.xlsx,…) never match; no platform path covers it; every console AI chat user who attaches a CSV, PDF or spreadsheet
Thread-read: 6997154699
Premise: holds — on origin/main (with #34463 merged as c3fb37a4c2): prompt-input.tsx:527matchesAccept compares tokens with File.type; :552 filters with it; the #34463 dev's jsdom probe (os-dev-report 6996617564) attached .png and refused .csv / .pdf
Serial constraints cleared: #34463's PR #35272 (same file) merged. PR #35261 edits ui/packages/i18n/src/locales/*.ts; overlap-check decides at push if this card adds a key. No other open PR touches plugin-chatbot.
Pre-claim lane: domain:ui (ui/packages/plugin-chatbot/**)
Pre-claim deps: #35272 merged; none other
Prior rulings read: composer, accept, mime, extension, attach → none on point; thread: triage first touch 6997154699 (p2, area:ai); #34463 contract record 6997046269 (the notice path this card reuses)
Note: Clause-②: no is the seat's reading; a new key in a published locale pack would make it yes (widening) as on #34463 — the dev measures and the seat amends.
{
"issue": 35276,
"status": "done",
"branch": "claude/issue-35276-composer-accept-tokens",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35330",
"head": "f14d489bcbf498a69f57bcf899c0d7fe24a1e87d",
"session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
"premise_still_valid": true,
"A1": "HOLDS on origin/main 00cfb78f: prompt-input.tsx matchesAccept compared every non-wildcard token with File.type exactly (a .ext token can never equal a MIME type); addLocal reported code accept only when EVERY file failed (no files field) and dropped the type-failing files of a mixed pick with no onError.",
"A2": "HOLDS on origin/main 00cfb78f: ChatbotEnhanced handlePromptInputError showed ComposerNotice only for code max_file_size with files; every other code, accept included, reached only console.warn.",
"summary": "PromptInput's accept check moves into one module-level helper fileMatchesAccept reading the HTML accept grammar (.ext = end of file name, type/* = MIME prefix, otherwise exact MIME; all case-insensitive; not exported). addLocal reports every type-refused file via onError({code:'accept', files}) in both the all-refused and the mixed case, mirroring max_file_size. ChatbotEnhanced shows it in the existing chat-attachment-refused ComposerNotice, naming the files and the accepted list through the EXISTING pack key fields.file.typeNotAccepted (no locale edit, no new key, Clause-2 stays no); refusals of one pick (type + size) are joined in one notice instead of the second replacing the first. Assignee field untouched (os-bill set by PM); PR assignee os-bill carried by pr_create.",
"tests": "head f14d489b. (1) pnpm --dir ui exec vitest run packages/plugin-chatbot/src/__tests__/ChatbotEnhanced.sendError.test.tsx: Test Files 1 passed, Tests 22 passed (14 existing + 8 new in a top-level describe for objectstack#35276: CSV+PDF attach under default list; .ext case-insensitive with empty/octet-stream type; grammar pin image/*,.CSV,application/pdf admits png/csv/doc.bin(application/pdf) and refuses video/mp4 + application/x-pdf; refused type shows role=alert notice with file + accepted list, not attached; mixed pick; type+size in one pick names both; CONTROL .png attaches with no notice; zh pack sentence). (2) pnpm --filter @object-ui/plugin-chatbot run type-check && vitest run packages/plugin-chatbot/: type-check exit 0, Test Files 103 passed (103), Tests 1058 passed (1058), lock VERDICT command-exit 0. Ablations via scripts/ablation-replace.mjs (anchor 1->0 on disk, restored blob == HEAD, git diff HEAD empty; test resolves ../ChatbotEnhanced from src so no build leg): A extension arm off -> 4 failed/18 passed; B accept notice branch off -> 5 failed/17 passed; C mixed-pick report off -> 3 failed/19 passed. test:repo not run locally (CI-owned; diff touches no repo-project test). Live browser NOT MEASURED (jsdom only, as filed).",
"gates": "Local: closure build pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-chatbot^...' build -> lock VERDICT command-exit 0. Derived families (dispatch-gates --commands --repo objectstack-ai/objectstack, tree f14d489b, 4 paths, 246 changed lines): 39/39 exit 0 (exit captured before any pipe); --ran reconciliation: '39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN' (DERIVED zero, all 39 carry an exit code). Extra: ui pnpm check:new-line-citations -> VERDICT 0 new citation(s) exit 0; node scripts/pm/overlap-check.mjs -> VERDICT clean exit 0 (origin/main 00cfb78f, 0 PR heads share a file). CI on PR head at report time: Governed Surface Queue Guard=success; Check Changeset, Check PR Size, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling, CI/release/engine, scoped x3), PR-body guards, Type Check (workspace, source, consumer, debt ledger)=in_progress; opt-in/queue/schedule jobs skipped. UI required jobs not yet listed. Not awaited per contract.",
"dogfood_battery": "n/a — no ! in the PR title and Clause-2 is 'no' with no (narrowing) arm",
"line_budget": "246 changed lines (+215/-31) over 4 files vs the 3000 human-merge threshold: under. No skills/** touched, so no skill line ratchet applies.",
"files_changed": [
"ui/packages/plugin-chatbot/src/elements/prompt-input.tsx",
"ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx",
"ui/packages/plugin-chatbot/src/__tests__/ChatbotEnhanced.sendError.test.tsx",
".changeset/35276-composer-accept-tokens.md"
],
"deviations": [
"Two WIP pushes (2af6ca25 fix, f14d489b changeset) went out before the first overlap-check run; the run after them (same head as the PR) answered VERDICT clean exit 0 and no push followed. The dispatch asked for it before every push.",
"No locale key added: the refused-type sentence reuses fields.file.typeNotAccepted, so no published locale pack moved and Clause-2 stays 'no'; no overlap with PR #35261. Cost: a multi-file refusal reads in that sentence's singular grammar (noted in Acceptance notes).",
"Suggested route asked for a separate unit pin for the grammar; the helper is kept unexported (no new public symbol on AIElements), so the grammar pin (.CSV upper-case, image/*, application/pdf + negatives) is driven through the component in the same harness file.",
"Beyond the suggested route: same-tick notices are joined so a pick refused for type AND size shows both (otherwise the size notice replaced the type one, leaving a refused file unshown).",
"First attempt to read the card used gh issue view (GraphQL) and was refused 403; re-read over REST. Read only."
],
"mcp_calls": "0",
"api_writes": "2 relay strokes (POST /repos/objectstack-ai/objectstack/dispatches each, executed as objectstack-fleet[bot]): pr_create -> POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /repos/objectstack-ai/objectstack/issues/35330/assignees; os-dev-report -> POST /repos/objectstack-ai/objectstack/issues/35276/comments. git push x3 (empty branch marker, fix, changeset) not REST.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — two copies of the accept grammar under ui/ (this helper and @object-ui/fields FileField matchesAcceptEntry/acceptError), deliberately differing on untestable picks; observation, no defect",
"carrier: none · noted, not filed — PromptInputProvider attachments.add (provider mode) applies no accept/size/count check; ChatbotEnhanced does not use provider mode, zero pull today",
"carrier: none · noted, not filed — a multi-file type refusal reads in the borrowed sentence's singular grammar; a plural key would be a locale-pack widening"
]
}
MERGED through the merge queue as 16d3abc41d (Fixes #35276; this card closed completed)
contract record
none owed (Clause-②: no, reuses fields.file.typeNotAccepted); L1-a ACCEPT 7000687498
Delivered: the AI chat composer reads its file accept list by the HTML grammar (.ext by name ending, type/* by MIME prefix, exact MIME otherwise), so CSV and PDF picked with the default list now attach; a refused type is named with the accepted list in the same notice the over-size refusal uses, and one pick refusing for both type and size names both.
Not done here: nothing owed.
State: pm:dispatched removed; card closed.
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (rules of #35223): area:ai · Bug · Broken · rare (attaching a CSV/PDF in the console AI chat) · read in jsdom, not live → p2, as filed.
area:uxremoved: a card carries exactly one area, and the chat composer belongs to the AI area. Issue type set to Bug.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Claim: PM loop round 4 · area ux-2 (
lease:ux-2; seat 5 routed it here at filing and confirmed after triage moved it toarea:ai: the lease decides) · 2026-11-19T04:21ZSession:
session_01Utp6CZrgaiMgTJCnswR6jQAccount:
os-billBranch:
claude/issue-35276-composer-accept-tokensWorktree:
objectstack-issue-35276Domain:
domain:uiSeat:
repo:objectstack#5File surface:
ui/packages/plugin-chatbot/src/elements/prompt-input.tsx(matchesAccept,addLocal),ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx(theonErrorhandler /ComposerNoticefrom #34463),ui/packages/i18n/src/locales/*.tsonly if a refused-type sentence needs a new key, their tests, root.changeset/. Stop on breach and report.Container & model:
S,mode:subagent,model: default — no path-derived mandate,effort: highClause-②: no
Metadata-protocol: none
Responsibility: ui
plugin-chatbotin objectstack compares each accept token withFile.typeexactly, so the default extension tokens (.pdf,.csv,.xlsx,…) never match; no platform path covers it; every console AI chat user who attaches a CSV, PDF or spreadsheetThread-read: 6997154699
Premise: holds — on
origin/main(with #34463 merged asc3fb37a4c2):prompt-input.tsx:527matchesAcceptcompares tokens withFile.type;:552filters with it; the #34463 dev's jsdom probe (os-dev-report 6996617564) attached.pngand refused.csv/.pdfSerial constraints cleared: #34463's PR #35272 (same file) merged. PR #35261 edits
ui/packages/i18n/src/locales/*.ts; overlap-check decides at push if this card adds a key. No other open PR touchesplugin-chatbot.Pre-claim lane:
domain:ui(ui/packages/plugin-chatbot/**)Pre-claim deps: #35272 merged; none other
Prior rulings read: composer, accept, mime, extension, attach → none on point; thread: triage first touch 6997154699 (p2, area:ai); #34463 contract record 6997046269 (the notice path this card reuses)
Note:
Clause-②: nois the seat's reading; a new key in a published locale pack would make ityes (widening)as on #34463 — the dev measures and the seat amends.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
os-dev-report
{ "issue": 35276, "status": "done", "branch": "claude/issue-35276-composer-accept-tokens", "pr": "https://github.com/objectstack-ai/objectstack/pull/35330", "head": "f14d489bcbf498a69f57bcf899c0d7fe24a1e87d", "session": "session_01Utp6CZrgaiMgTJCnswR6jQ", "premise_still_valid": true, "A1": "HOLDS on origin/main 00cfb78f: prompt-input.tsx matchesAccept compared every non-wildcard token with File.type exactly (a .ext token can never equal a MIME type); addLocal reported code accept only when EVERY file failed (no files field) and dropped the type-failing files of a mixed pick with no onError.", "A2": "HOLDS on origin/main 00cfb78f: ChatbotEnhanced handlePromptInputError showed ComposerNotice only for code max_file_size with files; every other code, accept included, reached only console.warn.", "summary": "PromptInput's accept check moves into one module-level helper fileMatchesAccept reading the HTML accept grammar (.ext = end of file name, type/* = MIME prefix, otherwise exact MIME; all case-insensitive; not exported). addLocal reports every type-refused file via onError({code:'accept', files}) in both the all-refused and the mixed case, mirroring max_file_size. ChatbotEnhanced shows it in the existing chat-attachment-refused ComposerNotice, naming the files and the accepted list through the EXISTING pack key fields.file.typeNotAccepted (no locale edit, no new key, Clause-2 stays no); refusals of one pick (type + size) are joined in one notice instead of the second replacing the first. Assignee field untouched (os-bill set by PM); PR assignee os-bill carried by pr_create.", "tests": "head f14d489b. (1) pnpm --dir ui exec vitest run packages/plugin-chatbot/src/__tests__/ChatbotEnhanced.sendError.test.tsx: Test Files 1 passed, Tests 22 passed (14 existing + 8 new in a top-level describe for objectstack#35276: CSV+PDF attach under default list; .ext case-insensitive with empty/octet-stream type; grammar pin image/*,.CSV,application/pdf admits png/csv/doc.bin(application/pdf) and refuses video/mp4 + application/x-pdf; refused type shows role=alert notice with file + accepted list, not attached; mixed pick; type+size in one pick names both; CONTROL .png attaches with no notice; zh pack sentence). (2) pnpm --filter @object-ui/plugin-chatbot run type-check && vitest run packages/plugin-chatbot/: type-check exit 0, Test Files 103 passed (103), Tests 1058 passed (1058), lock VERDICT command-exit 0. Ablations via scripts/ablation-replace.mjs (anchor 1->0 on disk, restored blob == HEAD, git diff HEAD empty; test resolves ../ChatbotEnhanced from src so no build leg): A extension arm off -> 4 failed/18 passed; B accept notice branch off -> 5 failed/17 passed; C mixed-pick report off -> 3 failed/19 passed. test:repo not run locally (CI-owned; diff touches no repo-project test). Live browser NOT MEASURED (jsdom only, as filed).", "gates": "Local: closure build pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-chatbot^...' build -> lock VERDICT command-exit 0. Derived families (dispatch-gates --commands --repo objectstack-ai/objectstack, tree f14d489b, 4 paths, 246 changed lines): 39/39 exit 0 (exit captured before any pipe); --ran reconciliation: '39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN' (DERIVED zero, all 39 carry an exit code). Extra: ui pnpm check:new-line-citations -> VERDICT 0 new citation(s) exit 0; node scripts/pm/overlap-check.mjs -> VERDICT clean exit 0 (origin/main 00cfb78f, 0 PR heads share a file). CI on PR head at report time: Governed Surface Queue Guard=success; Check Changeset, Check PR Size, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling, CI/release/engine, scoped x3), PR-body guards, Type Check (workspace, source, consumer, debt ledger)=in_progress; opt-in/queue/schedule jobs skipped. UI required jobs not yet listed. Not awaited per contract.", "dogfood_battery": "n/a — no ! in the PR title and Clause-2 is 'no' with no (narrowing) arm", "line_budget": "246 changed lines (+215/-31) over 4 files vs the 3000 human-merge threshold: under. No skills/** touched, so no skill line ratchet applies.", "files_changed": [ "ui/packages/plugin-chatbot/src/elements/prompt-input.tsx", "ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx", "ui/packages/plugin-chatbot/src/__tests__/ChatbotEnhanced.sendError.test.tsx", ".changeset/35276-composer-accept-tokens.md" ], "deviations": [ "Two WIP pushes (2af6ca25 fix, f14d489b changeset) went out before the first overlap-check run; the run after them (same head as the PR) answered VERDICT clean exit 0 and no push followed. The dispatch asked for it before every push.", "No locale key added: the refused-type sentence reuses fields.file.typeNotAccepted, so no published locale pack moved and Clause-2 stays 'no'; no overlap with PR #35261. Cost: a multi-file refusal reads in that sentence's singular grammar (noted in Acceptance notes).", "Suggested route asked for a separate unit pin for the grammar; the helper is kept unexported (no new public symbol on AIElements), so the grammar pin (.CSV upper-case, image/*, application/pdf + negatives) is driven through the component in the same harness file.", "Beyond the suggested route: same-tick notices are joined so a pick refused for type AND size shows both (otherwise the size notice replaced the type one, leaving a refused file unshown).", "First attempt to read the card used gh issue view (GraphQL) and was refused 403; re-read over REST. Read only." ], "mcp_calls": "0", "api_writes": "2 relay strokes (POST /repos/objectstack-ai/objectstack/dispatches each, executed as objectstack-fleet[bot]): pr_create -> POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /repos/objectstack-ai/objectstack/issues/35330/assignees; os-dev-report -> POST /repos/objectstack-ai/objectstack/issues/35276/comments. git push x3 (empty branch marker, fix, changeset) not REST.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — two copies of the accept grammar under ui/ (this helper and @object-ui/fields FileField matchesAcceptEntry/acceptError), deliberately differing on untestable picks; observation, no defect", "carrier: none · noted, not filed — PromptInputProvider attachments.add (provider mode) applies no accept/size/count check; ChatbotEnhanced does not use provider mode, zero pull today", "carrier: none · noted, not filed — a multi-file type refusal reads in the borrowed sentence's singular grammar; a plural key would be a locale-pack widening" ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Closed-out · area ux-2 · 2026-11-19T05:53Z
16d3abc41d(Fixes #35276; this card closed completed)Clause-②: no, reusesfields.file.typeNotAccepted); L1-a ACCEPT 7000687498Delivered: the AI chat composer reads its file
acceptlist by the HTML grammar (.extby name ending,type/*by MIME prefix, exact MIME otherwise), so CSV and PDF picked with the default list now attach; a refused type is named with the accepted list in the same notice the over-size refusal uses, and one pick refusing for both type and size names both.Not done here: nothing owed.
State:
pm:dispatchedremoved; card closed.