JasonOA888
2d055d3909
style: fix Prettier formatting
2026-03-10 15:10:17 +08:00
JasonOA888
efe08f445f
fix(page-controller): address Copilot review feedback
...
## Changes
1. **Check beforeinput cancellation**
- dispatchEvent returns false if canceled
- Check defaultPrevented as well
- Abort mutation if event was canceled by any listener
2. **Fix event order to match real user typing**
- Before: beforeinput -> mutation -> input -> keydown -> keyup
- After: keydown -> beforeinput -> mutation -> input -> keyup
- This matches typical browser event sequence
3. **Fix blur event semantics**
- blur doesn't bubble; focusout does
- Call editableElement.blur() to actually change focus
- Dispatch focusout with bubbles:true for listeners
- Then refocus
4. **Keep single-character keyboard events**
- Already fixed in previous commit
- Maintained here with correct order
All changes follow Copilot's suggested fixes.
2026-03-10 12:02:01 +08:00
JasonOA888
4e7f755ae9
fix(page-controller): address PR review feedback
...
## Changes
1. **Fix keyboard event semantics** (per review feedback)
- Only dispatch keydown/keyup for single-character input
- Avoids inconsistent event payloads for multi-character strings
- Prevents confusion in editors that correlate key events with text changes
2. **Remove extra blank line**
- Formatting consistency
Reviewer noted that dispatching key events with only the last character
of multi-character text creates semantic inconsistency with the actual
DOM mutation (which inserts the full string at once).
This fix follows the suggested change from the review.
2026-03-10 12:00:47 +08:00
JasonOA888
28bb2204e7
fix(page-controller): improve contenteditable input with proper events
...
## Problem
Input into contenteditable elements (like LinkedIn post editor) fails
because simply setting innerText does not trigger framework event listeners.
## Solution
Dispatch a full sequence of events that rich text editors expect:
- beforeinput (for React apps)
- input (standard)
- keydown/keyup (for keyboard listeners)
- change (for validation)
- blur + refocus (to trigger change detection)
## Testing
Tested on:
- LinkedIn post editor
- Draft.js editors
- Contenteditable divs with React listeners
Fixes #168
2026-03-10 10:32:07 +08:00
Simon
222bbef670
chore: update readme
2026-03-09 23:41:12 +08:00
Simon
fa8ab451eb
chore: update readme
2026-03-09 23:39:41 +08:00
Simon
b4ebb2b98f
chore(version): bump version to 1.5.4
2026-03-09 23:35:04 +08:00
Simon
c757270101
Merge pull request #173 from alibaba/feat/tolerant-html-cleaning
...
feat: support wildcard in `includeAttributes`
2026-03-09 22:48:34 +08:00
Simon
5873e68d63
Merge pull request #175 from alibaba/copilot/sub-pr-173-again
...
perf(page-controller): cache compiled regexes in `globToRegex`
2026-03-09 22:34:58 +08:00
Simon
0c124c3b44
Merge pull request #176 from alibaba/copilot/sub-pr-173-another-one
...
refactor: use Object.keys() instead of for...in in matchAttributes
2026-03-09 22:33:56 +08:00
copilot-swe-agent[bot]
d46a57f8ef
refactor: use Object.keys() instead of for...in in matchAttributes
...
Co-authored-by: gaomeng1900 <10131203+gaomeng1900@users.noreply.github.com >
2026-03-09 14:32:20 +00:00
Simon
153fa23a71
docs: update model list; give example for cookie auth
2026-03-09 22:31:35 +08:00
copilot-swe-agent[bot]
5852054e3a
perf: cache compiled regexes in globToRegex to avoid repeated compilation
...
Co-authored-by: gaomeng1900 <10131203+gaomeng1900@users.noreply.github.com >
2026-03-09 14:29:56 +00:00
copilot-swe-agent[bot]
5988d4ba24
Initial plan
2026-03-09 14:29:10 +00:00
copilot-swe-agent[bot]
0b6a698f6b
Initial plan
2026-03-09 14:26:53 +00:00
Simon
01db520881
feat: support wildcard in includeAttributes
2026-03-09 22:02:35 +08:00
Simon
30b9956c4f
Merge pull request #172 from alibaba/fix/contenteditable
...
fix: contenteditable
2026-03-09 19:19:23 +08:00
Simon
4b37a3e538
feat(controller): add contenteditable to DEFAULT_INCLUDE_ATTRIBUTES
2026-03-09 19:15:51 +08:00
Simon
928d8d2fb3
fix: allow ContentEditable in inputTextElement; clean up code
2026-03-09 19:05:32 +08:00
Simon
8ece20f54b
chore(ext): build script
2026-03-09 17:29:45 +08:00
Simon
26b4afca6a
chore(ext): bump version to 0.1.16
2026-03-09 17:17:04 +08:00
Simon
5f43b76b57
chore: improve scripts for extension
2026-03-09 17:15:16 +08:00
Simon
15d609aebc
chore(version): bump version to 1.5.3
2026-03-09 17:02:34 +08:00
Simon
d66bf8f3cf
docs: improve Contributing.md
2026-03-09 17:00:25 +08:00
Simon
d3b42036af
Merge pull request #169 from tsubasakong/lucas/opener-b-page-agent-167
...
fix(llms): avoid reasoning_effort for GPT-5.4 chat tools
2026-03-09 16:33:23 +08:00
Simon
e448a43769
docs(terms): wording
2026-03-09 15:53:02 +08:00
Frank
349de7bf48
Merge remote-tracking branch 'upstream/main' into HEAD
2026-03-08 16:51:01 -07:00
tsubasakong
eec601e6b2
fix(llms): avoid reasoning_effort for GPT-5.4 chat tools
2026-03-08 16:37:32 -07:00
Simon
5b280a4a67
docs: update README graph
2026-03-09 03:44:36 +08:00
Simon
46deaf373f
docs(readme): add HN discussion link and star history
2026-03-08 00:18:48 +08:00
Simon
e098d5701f
docs(terms): wording
2026-03-07 23:57:09 +08:00
Simon
21d4be0020
docs(terms): wording
2026-03-07 23:51:14 +08:00
Simon
3f6a1856ac
chore(ext): bump version; fix zip naming
2026-03-07 23:29:12 +08:00
Simon
816e24a102
Merge pull request #160 from alibaba/fix/extension-error-handling
...
fix: add button to clear saved configuration from the error boundary
2026-03-07 23:22:41 +08:00
Simon
80e2a93a8c
feat: add button to clear saved configuration from the error boundary
2026-03-07 23:16:03 +08:00
Simon
2f8096883f
docs(terms): wording for testing API terms
2026-03-07 04:50:34 +08:00
Simon
088f002583
chore(ext): bump version
2026-03-07 03:16:47 +08:00
Simon
27e9e78636
chore(version): bump version to 1.5.2
2026-03-07 03:08:33 +08:00
Simon
a0c979602e
feat: do not throw for webgl2 fail
2026-03-07 03:07:21 +08:00
Simon
3dc9edb8b5
fix(ext): ts types
2026-03-06 17:39:09 +08:00
Simon
32b68ab7c8
fix(docs): broken demo video
2026-03-06 16:07:22 +08:00
Simon
75a61c05c1
docs(terms): wording
...
Clarify the note regarding data processing location for the demo.
2026-03-06 04:33:03 +08:00
Simon
bdfa98358b
fix: requestIdleCallback on safari
2026-03-06 02:35:01 +08:00
Simon
dc8b38ccb9
chore(ext): bump extension version to 0.1.11
2026-03-05 20:48:00 +08:00
Simon
e1c288aaeb
docs(changelog): 1.5.1
2026-03-05 20:44:26 +08:00
Simon
7a97de2a37
feat(ext): expose more config
2026-03-05 20:34:55 +08:00
Simon
19b03b83ea
chore(version): bump version to 1.5.1
2026-03-05 19:28:19 +08:00
Simon
598b144d06
feat: change maxSteps to 40
2026-03-05 19:26:56 +08:00
Simon
1cd8a8de60
Merge pull request #158 from alibaba/fix/zod-v3
...
feat: import zod properly
2026-03-05 19:23:47 +08:00
Simon
9beffca985
docs: update doc for Zod v4 support
2026-03-05 19:15:03 +08:00