Fix Home - Task is not created in Concierge after sending [] task from Concierge prompt box - #99543
Conversation
…m Concierge prompt box
|
@codex please review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: afdb57eb33
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| } | ||
| openConciergeAnywhere({forceConcierge}); | ||
|
|
||
| if (createTaskFromMarkdown({text: trimmedQuery, parentReport: targetReport, currentUserPersonalDetails, quickAction})) { |
There was a problem hiding this comment.
Enforce the shorthand task-title limit before creating tasks
When the Home prompt contains a [] title longer than CONST.TITLE_CHARACTER_LIMIT, this new path calls createTaskFromMarkdown() and clears the input without any length validation. The report composer explicitly rejects the same shorthand in useDebouncedCommentMaxLengthValidation, but ConciergePromptBox only checks that the value is nonempty, so Home can now submit task titles that the established composer flow prevents; enforce the same limit before claiming and creating the task.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
From what I see it's true, but I'd handle it as a follow-up
There was a problem hiding this comment.
nvm, I'll add a fix here
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-08-26.13.18.30.movAndroid: mWeb Chrome2026-08-26.13.16.15.moviOS: HybridApp2026-08-26.13.18.30.moviOS: mWeb Safari2026-08-26.13.16.15.movMacOS: Chrome / Safari2026-08-26.13.05.36.mov |
|
But overall changes look good |
Can we see what that looks like? It could be nice if the UI doesn't jump, so I kinda like this idea of keeping a fixed area of bottom padding and the error message just shows up within that space. |
|
Oh sorry, I meant what if we used a fixed space below the composer, and the error message simply sat within that fixed space and didn't cause the fixed space to grow... let me know if that makes sense. |
Yeah |
|
Hmmm I don't think we're on the same page here. The gap between the bottom of the composer box and the label of "Time sensitive" or "For you" should always remain fixed. Does that make sense? |
That's what I'm talking about 😁 |
|
Haha okay, let's do it then? |
garrettmknight
left a comment
There was a problem hiding this comment.
Feels like this'll be really rare in practice, but looks good from a product perspective.
But are we okay with this? |
|
I am saying we should have a fixed box of space between the input and the label below. If the error message appears, it does not add any more space - it should appear within the existing fixed box of space. Happy to jump on a call or make a prototype if that helps. |
It's okay! |
|
@ZhenjaHorbach on it! |
|
Fixed: Screen.Recording.2026-08-26.at.16.16.44.movScreen.Recording.2026-08-26.at.16.20.32.mov@shawnborton you can see how it looks without the Time sensitive session as well above on Android simulator |
|
As for me looks good! |
|
That looks good when there is a section under it. On mobile on your left mock, I think we could use 12px of extra padding below the input so that the red text isn't quite as close to the bottom edge. |






Explanation of Change
Sending
[] taskfrom the Concierge prompt box posted a plain message instead of creating a task. Extracted the[] title+ optional@mentionmarkdown handling out ofuseComposerSubmitinto a reusablecreateTaskFromMarkdownaction inTask.ts, and called it fromuseAskConciergebefore falling back toaddComment.Also adding
CONST.TITLE_CHARACTER_LIMITcheck to make sure validation matches Concierge composer validationFixed Issues
$ #99497
PROPOSAL: N/A
Tests
Max length validation:
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2026-08-26.at.11.49.47.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2026-08-26.at.11.48.34.mov
Screen.Recording.2026-08-26.at.13.02.31.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-08-26.at.11.45.07.mov
Screen.Recording.2026-08-26.at.12.55.37.mov