Skip to content

Conversation

@aalises
Copy link
Contributor

@aalises aalises commented Jan 7, 2026

Linear ticket related: https://linear.app/n8n/issue/AI-1811/feature-change-title-of-browser-tab-and-add-icon-to-indicate-build

Summary

Adds visual feedback in the browser tab title when the AI builder is working or has completed, helping users who switch tabs know the status of their workflow generation.

Changes

New behavior

  • [Building] prefix appears in the page title while the AI builder is generating
  • [Done] prefix appears when the AI builder finishes, only if the user is on another tab
  • When the user returns to the tab, the title resets to the normal ▶️ (IDLE) status

How it works

  1. When sendChatMessage is called → title shows [Building] Workflow Name - n8n
  2. When streaming ends:
    - If tab is hidden → title shows [Done] Workflow Name - n8n
    - If tab is visible → title shows ▶️ Workflow Name - n8n (IDLE)
  3. When user returns to the tab (visibility change) → resets from [Done] to ▶️ (IDLE)

Test plan

  • Unit tests for useDocumentTitle with all status types
  • Unit tests for builder.store title behavior

Demo

  • Building on AI builder starting
    Kapture 2026-01-07 at 16 28 16

  • IDLE on finishing and tab is focused
    Kapture 2026-01-07 at 16 29 50

  • Moves to Done on finishing and you don't have the tab focused
    captura5

  • Resets to IDLE on focusing the tab, Done otherwise

Kapture 2026-01-07 at 16 26 59

@aalises aalises force-pushed the aalises/AI-1811-change-title-browser-tab-when-ai-building branch from 0a68112 to 06a2a53 Compare January 7, 2026 15:41
@aalises aalises changed the title feat(ai-assistant): Show building and done status in page title for AI builder feat(editor): Show building and done status in page title for AI builder Jan 7, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 6 files

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

❌ Patch coverage is 89.18919% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...i/assistant/components/Agent/AskAssistantBuild.vue 20.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Jan 7, 2026
@aalises aalises requested review from a team and mutdmour and removed request for a team January 7, 2026 15:54
@currents-bot
Copy link

currents-bot bot commented Jan 7, 2026

E2E Tests: n8n tests passed after 7m 29.8s

🟢 609 · 🔴 0 · ⚪️ 38

View Run Details

Run Details

  • Project: n8n

  • Groups: 2

  • Framework: Playwright

  • Run Status: Passed

  • Commit: 762ac85

  • Spec files: 142

  • Overall tests: 647

  • Duration: 7m 29.8s

  • Parallelization: 16

Groups

GroupId Results Spec Files Progress
multi-main:e2e 🟢 552 · 🔴 0 · ⚪️ 38 133 / 133
multi-main:e2e:isolated 🟢 57 · 🔴 0 · ⚪️ 0 9 / 9


This message was posted automatically by currents.dev | Integration Settings

@aalises aalises force-pushed the aalises/AI-1811-change-title-browser-tab-when-ai-building branch from 06a2a53 to b80f92f Compare January 8, 2026 08:24
Copy link
Contributor

@mutdmour mutdmour left a comment

Choose a reason for hiding this comment

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

Nice job

icon = '▶️';
prefix = '▶️';
} else if (status === 'AI_BUILDING') {
prefix = '[Building]';
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a fan of how inconsistent the naming is

@aalises aalises requested a review from mutdmour January 8, 2026 15:20
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 4 files (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="packages/frontend/editor-ui/src/app/views/NodeView.test.ts">

<violation number="1" location="packages/frontend/editor-ui/src/app/views/NodeView.test.ts:29">
P2: Tests are tautological - they test inline if/else logic rather than the actual implementation. The file claims to test NodeView but never imports it, and references a non-existent `openWorkflow` function. The actual streaming/title logic lives in `builder.store.ts` (`prepareForStreaming`, `stopStreaming`). Consider either importing and testing the actual store methods, or removing these tests if builder.store.test.ts already covers this functionality.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Copy link
Contributor

@mutdmour mutdmour left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for addressing my feedback

@aalises aalises added this pull request to the merge queue Jan 8, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 8, 2026
@aalises aalises added this pull request to the merge queue Jan 8, 2026
Merged via the queue into master with commit 4879db8 Jan 8, 2026
40 checks passed
@aalises aalises deleted the aalises/AI-1811-change-title-browser-tab-when-ai-building branch January 8, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

n8n team Authored by the n8n team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants