Skip to content

fix(agent): say when a section edit leaves the page in view unchanged - #104

Merged
Rl0007 merged 1 commit into
mainfrom
fix/agent-flags-unchanged-page
Oct 6, 2026
Merged

Rl0007 merged 1 commit into
mainfrom
fix/agent-flags-unchanged-page

Conversation

@Rl0007

@Rl0007 Rl0007 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

On the Pages tab, asking the agent to move or add something often changed only the section (wiki preview), so the page you were looking at stayed the same while the agent said "Done".
edit_section_content now tells the agent when the page in view is unchanged, so it must make the same edit on the page before reporting success. The hint stays quiet once the page was already edited in the same turn.

Verification

bench --site wikify.localhost run-tests --module wikify.tests.test_agent_write: Ran 24 tests, OK (three new tests: hint for the page in view, none for pages outside the section, none once the page was edited this turn). test_agent and test_agent_content also pass.

Browser run on wikify.localhost: "move the page image to the top of this page" and "put the page 4 image before the first heading on this page" both moved the image on the page and in the section, and the agent's replies matched the data.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@Rl0007
Rl0007 merged commit 7ae3d23 into main Oct 6, 2026
3 checks passed
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.

1 participant