| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 6703da75f3
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 31b6df6bf5
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: bdf84923d9
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: bf992cfc85
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 1720cfe688
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 343cbf6496
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 74ef4cd63c
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b6b06164a
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: fb0632b470
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 49ae976569
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: bd355e1f79
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: c34bc8947d ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Sorry, something went wrong.
Change-Id: I3460285d7e278bbd0a3a02a056738ae734c8eb1a Signed-off-by: Thomas Kosiewski <tk@coder.com>
Change-Id: If0412a81b48ea28fa5779919578c6c1744e5adad Signed-off-by: Thomas Kosiewski <tk@coder.com>
Change-Id: Ifbd2f32e8e35430746dbe7859c74aec48e00ec23 Signed-off-by: Thomas Kosiewski <tk@coder.com>
Change-Id: I58ddd0c9825b6d0c90ddfd965e35e2a4a9a1814b Signed-off-by: Thomas Kosiewski <tk@coder.com>
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 8fa1331fae
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Change-Id: I8e012a4d13ca25dff713c89f72abd443aa3e4c1f Signed-off-by: Thomas Kosiewski <tk@coder.com>
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: fef42074fa
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Change-Id: I9015dc3480366cab0dafa24f53faa243ac74d857 Signed-off-by: Thomas Kosiewski <tk@coder.com>
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: e851df4e88
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Change-Id: I4d4f723896004bfe89539130982cc7e6951c116c Signed-off-by: Thomas Kosiewski <tk@coder.com>
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 9150a26da5
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Change-Id: I933d583055761c436ca94a8aa941a2daa6095a39 Signed-off-by: Thomas Kosiewski <tk@coder.com>
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 05a09cefd6
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Change-Id: I84165d47e7aca2452b33dfb15df5771664310630 Signed-off-by: Thomas Kosiewski <tk@coder.com>
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 7668001752
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Change-Id: I6beab0dae7d2812928fab8c08a190400e81a30c9 Signed-off-by: Thomas Kosiewski <tk@coder.com>
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: 0b5d1bbbbc ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #127
Summary
Validation
Dogfooding
Using the Vite dev server (bun run dev -- --host 127.0.0.1) and agent-browser, I verified:
Verifier notes
📋 Implementation Plan
Implementation Plan: #127 — preserveScrollOnWrite
Goal
Add a minimal, opt-in terminal option that preserves the user’s scrolled-up viewport during streaming writes, while keeping the current “snap back to bottom on write” behavior as the default.
Target behavior:
Advisor review status
Verified repo context
From focused read-only exploration:
Scope
In scope
Out of scope
Implementation phases
Phase 1 — Add the public option
Files:
Steps:
Add the optional property to ITerminalOptions:
In the Terminal constructor’s default/base options object, add:
Keep naming exactly preserveScrollOnWrite to match the issue, triage recommendation, and external fork precedent.
Do not add aliases or additional configuration knobs.
Quality gate after Phase 1:
Phase 2 — Preserve scrolled-up viewport during writes
File:
Recommended algorithm in writeInternal:
After this.assertOpen() and before this.wasmTerm!.write(data), capture:
Leave the existing write pipeline intact:
Replace only the unconditional post-write auto-scroll block with scoped conditional behavior:
Use the signed scrollback delta from the before/after measurements, then clamp. Do not mask negative deltas with Math.max(0, delta): unusual write data may clear or reduce scrollback, and the signed-delta formula keeps viewportY within valid bounds while matching the issue brief.
Keep the implementation minimal. Include a local defensive assertion/comment only if it documents a repository-confirmed invariant; do not turn escape-sequence behavior such as scrollback clearing into unrelated user-facing error handling.
Keep targetViewportY synchronized with viewportY; otherwise the existing smooth-scroll animation can pull the viewport back toward a stale target.
Clamp to the new scrollback length so the viewport never points beyond available history, especially when the configured scrollback limit has been reached.
If preserveScrollOnWrite is true but the user is at the bottom (savedViewportY === 0), do not adjust upward. The live bottom should continue showing new output. The else if (this.viewportY !== 0) fallback still preserves default snap-to-bottom behavior if processing somehow leaves the viewport nonzero outside the opt-in scrolled-up path.
Quality gate after Phase 2:
- Run the focused scrolling tests once they exist: bun test lib/scrolling.test.ts.
- If the focused suite exposes pre-existing unrelated failures, capture evidence and keep Could the automatic scrollToBttom() behaviour made to be configurable/togglable? #127 changes scoped.
Rationale for the scrollback-delta algorithmviewportY is an offset from the live bottom. When the user is scrolled up and a new line enters scrollback below them, the same historical content is now one line farther away from the bottom. Adjusting viewportY by the signed scrollback delta keeps the visible top line stable for the normal streaming-output case. If no scrollback lines are added, the viewport should not move. If scrollback is reduced or old lines are dropped, signed delta plus clamping keeps offsets valid; content no longer retained by WASM cannot be preserved.
Phase 3 — Add tests
File:
Add a focused suite such as describe('preserveScrollOnWrite', () => { ... }) using the existing createIsolatedTerminal() pattern. For deterministic assertions, prefer setting smoothScrollDuration: 0 directly in these new tests if the option works with the existing helper; otherwise wait for the smooth-scroll animation to settle before asserting viewportY / emitted scroll values.
Required tests:
Default behavior remains snap-to-bottom
Opt-in mode preserves viewport across scrollback growth and emits onScroll
Opt-in mode does not move viewport when write creates no scrollback growth
Runtime option toggle works
Test hygiene:
Quality gate after Phase 3:
bun test lib/scrolling.test.tsPhase 4 — Full validation
Run the repository’s normal gates before claiming the implementation is done:
bun run fmt bun run lint bun run typecheck bun test bun run buildIf bun test hangs after printing successful results, record the printed pass/fail summary and terminate only after confirming the test suite completed. If validation fails for an unrelated pre-existing reason, capture the exact command, failure, and why it is out of scope.
Phase 5 — Dogfooding and reviewable evidence
Goal: demonstrate the behavior in a real browser terminal surface and produce evidence reviewers can inspect.
Setup:
Install dependencies if needed:
Start Vite, not a plain static file server:
Use browser automation with the agent-browser skill or equivalent Playwright flow to open a same-origin page, preferably:
Dogfood procedure:
Default mode evidence
Opt-in mode evidence
Evidence handling
Suggested evidence checklist:
Acceptance criteria
Risks and mitigations
Generated with mux • Model: openai:gpt-5.5 • Thinking: xhigh