Skip to content

Add agent task conversation foundation#1323

Open
klopez4212 wants to merge 8 commits into
mainfrom
kennylopez-agent-tasks-foundation
Open

Add agent task conversation foundation#1323
klopez4212 wants to merge 8 commits into
mainfrom
kennylopez-agent-tasks-foundation

Conversation

@klopez4212

@klopez4212 klopez4212 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add the core continued agent conversation model, marker event parsing/publishing, and recap/title helpers.
  • Add the dedicated agent conversation screen and source-thread navigation primitives.
  • Add thread activity polish for agent thinking states and flattened one-level thread replies.

Stack

  1. This PR
  2. Add channel task surface #1324
  3. Add task link cards #1325
  4. Gate channel tasks experiment #1275

Snapshots

Task marker and recap

Task marker and recap

Channel Tasks tab

Channel Tasks tab

Tests

  • git diff --check origin/main..HEAD
  • cd desktop && pnpm check:file-sizes && ./node_modules/.bin/tsc --noEmit
  • cd desktop && pnpm test
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml deep_link --lib

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 103bdb60f1

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/agentConversations.ts Outdated
Comment thread desktop/src/features/sidebar/ui/AppSidebar.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83041e0366

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/agentConversations.ts Outdated
Comment thread desktop/src/features/messages/ui/MessageTimeline.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 06d4958075

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/messages/ui/MessageThreadPanel.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4d3a0c0ec9

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/AgentConversationScreen.helpers.ts Outdated
@klopez4212 klopez4212 force-pushed the kennylopez-agent-tasks-foundation branch from 4d3a0c0 to 8ad906e Compare June 28, 2026 07:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8ad906e802

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/buzz-acp/src/queue.rs
Comment thread desktop/src-tauri/src/commands/agents.rs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a7b625f1f5

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/AgentConversationScreen.tsx
Comment thread desktop/src/features/agents/ui/AgentConversationScreen.tsx Outdated
Comment thread desktop/src/features/agents/ui/AgentConversationScreen.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75a20b271b

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +667 to +669
return threadMessages.filter(
(entry) => !hiddenAgentConversationMessageIds.has(entry.message.id),
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exclude hidden task replies before unread state

Because this filtering happens only inside ChannelPane, the upstream useChannelUnreadState has already built threadUnreadCounts and its open-thread effect marks every unfiltered threadMessages entry read. In a source thread with a task marker and unread task replies, those replies are hidden here but still counted/cleared when the source thread is opened, so users can lose task unread state without seeing the messages. Push the hidden-id filtering into the unread/read-state inputs or exclude these ids there too.

Useful? React with 👍 / 👎.

Comment on lines +73 to +75
KIND_AGENT_CONVERSATION_COMPAT, // 40004 — staging-compatible focused agent conversation marker
KIND_STREAM_MESSAGE_DIFF, // 40008 — message diffs
KIND_AGENT_CONVERSATION, // 40010 — focused agent conversation marker

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Mirror agent conversation kinds in mobile

Adding these marker kinds to the desktop channel filters without updating mobile/lib/shared/relay/nostr_models.dart breaks the documented sync between the Flutter EventKind.channelEventKinds and desktop CHANNEL_EVENT_KINDS. In workspaces where marker events are published (desktop publishes the 40004 compat kind and the relay now supports 40010), mobile channel subscriptions will not receive that state even though desktop treats it as channel activity.

Useful? React with 👍 / 👎.

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