Skip to content

Let's do it opens a new chat with the idea in its message box - #1035

Closed
TeddOravec wants to merge 1 commit into
promptclickrun:mainfrom
TeddOravec:fix/idea-new-chat
Closed

TeddOravec wants to merge 1 commit into
promptclickrun:mainfrom
TeddOravec:fix/idea-new-chat

Conversation

@TeddOravec

Copy link
Copy Markdown
Contributor

What happened

On an idea, Let's do it sends the message at once, into the bot's own Bot Chat — the one already on screen. Two changes stacked into that:

So an idea is started with no chance to write anything before it goes, in the chat the person is already in. For a workflow where an idea becoming work is the start of a new session, both halves are wrong.

The fix

Ideas now open a new chat with that bot, with the text sitting in the message box unsent, so notes go on before it is sent. AgentBoardContext gains onAskNewChat (falls back to onAsk, so fixtures and older call sites behave as before); RootShellView.startNewChat(withBot:text:) leaves the text for the new chat and starts it on that bot.

The yes is still recorded by the idea's ID before the chat opens, and an older plugin still goes straight to the chat.

A Feed post's Do it is unchanged: a post is a message, not a job.

Test

Built for the iPhone Duo simulator. Let's do it → a new chat opens on that bot with the idea in the message box, nothing sent; the idea moves to Completed as before.

On an idea, Let's do it sent the message at once into the bot's own Bot Chat, the one on screen: no chance to add notes, and no new session for what is a new job. Ideas now open a NEW chat with that bot, the text in its message box unsent, so notes go on before it is sent. The yes is still recorded by the idea's ID first, and older plugins still go straight to the chat. A Feed post's Do it is unchanged.
@promptclickrun

Copy link
Copy Markdown
Owner

This will not be worked. You are able to select Discuss on an item to do exactly what you have described.

@TeddOravec

Copy link
Copy Markdown
Contributor Author

One correction to the reason above, then I'll drop it.

There is no Discuss on an idea. Discuss exists only in the Feed and Goal rows of the item menu (AgentBoardViews.swift, the .feed and .goal cases). The idea's own row in that same menu is Start a chat about this, and it is behind a touch-and-hold. The idea's page (IdeaDetailView) offers exactly three answers: Let's do it, Make it a goal, Not now.

Both controls a person can actually reach on an idea end in openSimpleBotChat (RootSimpleBots.swift:258) → openCanonicalAgentChat, whose doc comment says it opens the Bot Chat "whatever Settings › Chat › A bot opens says". So whichever one they pick, and whatever "A bot opens" is set to, the idea lands in the one long-running Bot Chat, on top of whatever that chat was already doing.

That is the part this PR was about: an idea said yes to is a job of its own, and for a person who treats every job as its own conversation there is no configuration in the app that starts one. Discuss fixes the "let me add notes before it goes" half and not that one.

The branch fix/idea-new-chat is still on the fork at 66f3184. I'll rebase it on main if you want it reviewed. If it's a no, close this and I won't raise it again.

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