Skip to content

fix(linkedin): normalize timeline text#1726

Closed
gauravsaxena1997 wants to merge 1 commit into
jackwener:mainfrom
gauravsaxena1997:codex/linkedin-timeline-cleanup
Closed

fix(linkedin): normalize timeline text#1726
gauravsaxena1997 wants to merge 1 commit into
jackwener:mainfrom
gauravsaxena1997:codex/linkedin-timeline-cleanup

Conversation

@gauravsaxena1997
Copy link
Copy Markdown
Contributor

What and why

The existing LinkedIn timeline adapter can return noisy post text because LinkedIn activity cards repeat author/headline/timestamp fragments inside the same visible card. That makes the command harder for agents to consume when they only need clean post text and stable counters.

This PR tightens the extraction while preserving the existing command surface.

What this PR does

Updates the existing Strategy.COOKIE LinkedIn browser adapter:

opencli linkedin timeline -f json

Implementation details:

  • Adds shared LinkedIn helpers for text normalization and repeated-text compaction
  • Cleans duplicated author/headline fragments from extracted timeline rows
  • Keeps the existing timeline command shape and columns intact
  • Preserves read-only behavior and authenticated browser-session requirements

Live verification

Verified against a logged-in LinkedIn profile session. Timeline rows returned cleaner visible activity text while preserving reaction/comment/repost counters.

Checklist

  • npm run build
  • npx vitest run --project adapter clis/linkedin/timeline.test.js
  • npm run typecheck
  • node scripts/check-typed-error-lint.mjs
  • node scripts/check-silent-column-drop.mjs

@gauravsaxena1997 gauravsaxena1997 changed the title fix(linkedin): clean timeline post text fix(linkedin): normalize timeline text May 22, 2026
jackwener added a commit that referenced this pull request May 23, 2026
Consolidates PRs #1722, #1723, #1724, #1725, #1726, and #1727 after B-group lead+aux review.\n\nReviewed-by: codex-mini1\nReviewed-by: First-principles-1
@jackwener
Copy link
Copy Markdown
Owner

Closed as superseded by consolidated PR #1731, merged as b6965a5.

@jackwener
Copy link
Copy Markdown
Owner

Superseded by consolidated PR #1731 (merged as b6965a5).

@jackwener jackwener closed this May 23, 2026
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