The robot log follows the newest line

Open Beginner friendly
#290 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Domain
frontend

Research direction

Start in target/sim/simulator.ts at log(), where each line is appended without scrolling, and check the log element's CSS for the scroll container. The rule to implement is: scroll to the newest line only when the view is already at the bottom, and leave the scroll position alone once the player scrolls up. Add a case to the editor test suite that appends past the visible area, asserts the follow, then scrolls up, appends again, and asserts the view is unchanged.

Written by the indexing model from the issue text.

Description

area: editor P3 type: feature

Job to be done

When my program runs, I want the robot log to show the newest line, so I can see what the robot does now without scrolling.

Player value

The player sees what happens, when it happens.

What the code does today (develop, 2026-11-24)

  • log() in target/sim/simulator.ts adds each line at the bottom and does not scroll. Measured in headless Chromium with the log's own CSS: at the bottom, the same lines stay in view when new ones come.
  • The log keeps its newest 1000 lines (#283).

Acceptance criteria

  • When the newest line is in view, the log follows it.
  • When the player has scrolled up, the lines they read stay in view.
  • A test in the editor suite checks both.

Parent: #63
Related: #283
Priority: P3

Dominant language
Java
Stars
0
Forks
1
Avg merge
1h 29m
Merged PRs (30d)
42

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from halisonworks/mod-codeling

All issues in halisonworks/mod-codeling

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.