Repository navigation
fix(council): restore Perplexity research mode — click the typeahead item, Space no longer commits - #118
Open
intellegix wants to merge 2 commits into
Open
fix(council): restore Perplexity research mode — click the typeahead item, Space no longer commits#118intellegix wants to merge 2 commits into
intellegix wants to merge 2 commits into
Conversation
… drift Perplexity replaced the toolbar mode indicator (text pill "Deep research" / "Research" / "Labs") with an icon-only button exposing aria-label + aria-pressed and EMPTY textContent. The text-scan verifiers (_verify_research/_labs/_council _activation) could no longer see the active mode -> false SELECTOR_DRIFT_DETECTED -> activate_mode() returned False -> every research call aborted with "Failed to activate research mode" (step=activate). 11/17 queries failed 2026-07-22. Add an additive Tier-0 aria-label + aria-pressed check ahead of the existing text tiers (returns True only on a positive match; falls through otherwise, so it cannot regress). Research tier verified via live DOM probe + end-to-end research_query returning a full synthesis; labs/council mirror the same redesign. Note: this file also carries accumulated uncommitted live-patches whose diff context was entangled with the fix, so they are snapshotted in this commit. Only council_browser.py is staged; the repo's other dirty files are untouched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018FgMrRBDHeDFgePWjG31zT
…nores Space Perplexity's slash-command palette is now a Lexical typeahead (#typeahead-menu, role="menuitem") that does not commit on Space. Every research run for ~45h typed "/research", pressed Space, left the menu open and failed as "Failed to activate research mode" while signed in (Max). activate_mode now clicks the menu item matching the mode when one rendered and falls back to PERPLEXITY_COMMIT_KEY otherwise. Log lines report which path committed. Regression test fails on the old code. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017QV5DKhmDhU3zMxVFEvaRw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What broke
Every Perplexity research run for ~45 hours (2026-10-28 12:40Z → 2026-10-30 10:13Z) failed with
Failed to activate research mode. The failure artifact from the 2026-10-30 03:13 PT run shows the page signed in (Austin Kidwell · Max),/researchtyped, and the slash palette still open with "Deep Research" highlighted. The palette is now a Lexical typeahead (#typeahead-menu,role="menuitem") and Space no longer commits it, so the mode never engaged.Fix
activate_modenow calls_commit_mode_choice, which clicks the menu item whose text matches the mode (case-insensitive) and falls back toPERPLEXITY_COMMIT_KEYonly when no item rendered.key=click_menuitemvskey=Space).indicator=tier0_aria_pressed), so master needs both.Verification
step=commit_pressed key=click_menuitem→verify=OK indicator=tier0_aria_pressed→SUCCESS.tests/test_activate_mode_commit.py(3 tests): the main test fails on the pre-fix code (assert False is True) and passes after. Fullcouncil-automation/tests: 84 passed on this branch.Deploy path
The runner executes from the live
~/.claudeworking tree, not from master. The same patch was applied there by hand on 2026-10-30, and the live query above ran against it. Merging this PR does not deploy anything; it brings master in line with what is running.PPLX-VERIFY-OVERRIDE: verification_unavailable — the subsystem under repair is the verifier. Deploy-path check done by hand as described above.
🤖 Generated with Claude Code
https://claude.ai/code/session_017QV5DKhmDhU3zMxVFEvaRw