Skip to content

Add embedded YouTube demo video to web landing page - #1

Merged
esokullu merged 1 commit into
mainfrom
codex/add-video-to-web-folder
Apr 6, 2026
Merged

esokullu merged 1 commit into
mainfrom
codex/add-video-to-web-folder

Conversation

@esokullu

@esokullu esokullu commented Apr 6, 2026

Copy link
Copy Markdown
Collaborator

Motivation

  • Provide a visible demo of WebBrain in action on the landing page to help visitors understand features quickly.
  • Host the requested YouTube video inline so users can watch without leaving the site.
  • Add a navigation anchor for quick access to the demo section from the top nav.

Description

  • Updated web/index.html to add a new Demo section containing an embedded YouTube iframe for https://youtu.be/1NN2dweooKM.
  • Added responsive CSS rules (.video-showcase, .video-frame, and iframe styles) to maintain a 16:9 aspect ratio and card-like presentation.
  • Inserted a Demo anchor link in the top navigation to jump to the new section.
  • The change is a static HTML/CSS update and does not modify build tooling or runtime logic.

Testing

  • Ran git diff -- web/index.html to inspect the changes to web/index.html and verified the demo section and CSS were added, which succeeded.
  • Printed the modified file region with nl -ba web/index.html | sed -n '720,920p' to validate the inserted block and confirmed the iframe and styles are present, which succeeded.

Codex Task

@vercel

vercel Bot commented Apr 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webbrain Ready Ready Preview, Comment Apr 6, 2026 7:43pm

@esokullu
esokullu merged commit 9c83721 into main Apr 6, 2026
2 checks passed
@esokullu
esokullu deleted the codex/add-video-to-web-folder branch April 6, 2026 19:44
esokullu added a commit that referenced this pull request Apr 7, 2026
Settings bug: clicking "Set Active" on a provider re-rendered the provider
list from the in-memory snapshot, silently throwing away any unsaved field
edits in OTHER provider cards. Now syncs all input values back into
providersData before re-rendering. Mirrored to firefox.

#1 Firefox capability gap documented in README. Lists all the chrome-only
features (CDP click/type, shadow DOM piercing, SPA-detect retry, conv
persistence, closed shadow roots) so users aren't surprised.

#2 .gitattributes added with text=auto eol=lf so git stops warning about
CRLF on every commit.

#3 Auto-screenshot defensive 500ms debounce. The original concern was a
misread — the per-batch flag already capped at one screenshot per turn.
Added the debounce as cheap insurance for future refactors.

#4 Site adapter mid-conversation re-injection. New _maybeReinjectAdapter
runs at the top of each LLM iteration and pushes a "Site context changed"
message when the active adapter differs from the last seen one. Seeded
in _enrichFirstUserMessage so the very first turn doesn't double-inject.
Multi-site workflows now get correct guidance throughout.

#5 Loop detection nudge persistence. Healthy non-looping calls no longer
reset the nudge counter immediately — only after 6 consecutive healthy
calls (a full window). Catches the slow-loop case where the agent
interleaves a read_page between two stuck clicks.

#6 Tool-batch executor refactored into a shared _executeToolBatch helper
called by both processMessage and processMessageStream. Eliminates the
duplication that was already drifting (loop detection, persistence,
auto-screenshot logic). Both paths are now <60 lines each. Mirrored to
firefox.

#7 Test suite. Pure-Node, zero-dependency runner at test/run.js. 23 tests
covering adapter matching (12 cases including finance precedence and
GHES strictness) and loop detection (11 cases including ABAB oscillation,
slow-loop persistence, healthy-streak reset, tab isolation). All passing.
npm test added to package.json.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
esokullu added a commit that referenced this pull request Apr 11, 2026
Deep verbose fix:
- Switch from right-click (intercepted by Chrome) to Shift+click on verbose
  button — merged into single click handler with shiftKey check

Agent persistence improvements (both Chrome and Firefox):
- maxSteps: 60 → 120 (double the runway)
- Loop nudge→stop threshold: 2 → 4 (agent gets 4 chances before hard stop)
- Coord click nudge: 2nd → 3rd attempt, stop: 3rd → 5th attempt
- Coord click window: 8 → 12 entries
- Healthy call reset: 6 → 3 (easier to recover from nudge state)
- Removed "call done() if the task is impossible" from nudge warnings —
  this was the #1 cause of premature quitting
- Softened all nudge/stop messages to encourage retrying vs giving up
- done() tool description now explicitly discourages premature use
- LLM errors: added 2s retry before giving up (catches rate limits, transient network)
- Updated all 32 tests to match new thresholds

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
esokullu added a commit that referenced this pull request Jun 21, 2026
esokullu added a commit that referenced this pull request Jun 23, 2026
- drainQueuedContextMenuPrompts: replace shift()+continue with
  findIndex+splice so prompts for non-active tabs stay in the queue
  instead of being permanently discarded (finding #1)
- tabs.onRemoved / webNavigation.onCommitted: route cleanup through
  getContextMenuPromptStore() so local-storage fallback is cleared too;
  add navigation listener to invalidate stale prompts on page change
  (findings #2, #3)
- runContextMenuPrompt: move clear_context_menu_prompt dispatch to after
  sendMessage() so storage isn't wiped before text is captured (finding #4)
- Extract context-menu-storage.js and context-menu-prompts.js as shared
  factory modules (identical in Chrome/Firefox); remove ~160 lines of
  duplicated code from background.js and sidepanel.js (findings #5, #6)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
webbrain-one pushed a commit that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant